
July 10th, 2012, 01:37 PM
|
|
Registered User
|
|
Join Date: Jul 2012
Posts: 1
Time spent in forums: 5 m 6 sec
Reputation Power: 0
|
|
|
Populate text within cdata from another xml
plz help this is my code
first xml - mainfood.xml
Code:
<?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>
2nd xml - foodnames.xml
Code:
<?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>
basically i want tht lines like <a >• <font face="Georgia">chicken biryani<br></a></font> be read from foodnames.xml and popluated into mainfood.xml in place of &fooditems;
but the code is not working....
somene plz plz help
|