第一个 XML -mainfood.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE doc [
<!ENTITY fooditems SYSTEM "foodnames.xml">
]>
<content>
<section name="pages">
<page name="food">
<texts>
<pageText> <![CDATA[
<font face="arial">food</font>
]]></pageText>
<pageText><![CDATA[
&fooditems;
]]></pageText>
</texts>
</page>
</section>
</content>
第二个 XML -foodnames.xml
<?xml version="1.0" encoding="utf-8"?>
<a >• <font face="Georgia">chicken biryani<br></a></font>
<a >• <font face="Georgia">manchurian<br></a></font>
<a >• <font face="Georgia">aloo dum<br></a></font>
<a >• <font face="Georgia">sushi<br></a></font>
基本上,我希望<a >• <font face="Georgia">chicken biryani<br></a></font>
从中读取foodnames.xml
并填充这些行来mainfood.xml
代替&fooditems;
但是代码不起作用...