【发布时间】:2021-12-07 14:48:01
【问题描述】:
我的 xml:
<Car no="10" CarID="id_111-110">
<ProductionD>07.12.2010</ProductionD>
<MarketValue currency="$">12499.99</MarketValue>
<VisitedCountries>
<Country no="1">
&MCountry;
</Country>
<Country no="2">
Andora
</Country>
</VisitedCountries>
</Car>
实体,放在另一个文件中:
<!ENTITY MCountry "Poland">
这样,它不起作用,Country 中只有一个空白字段,而如果我直接在 xml 文件中声明实体,它就可以正常工作。
【问题讨论】: