Jump to content

populate text within cdata from another xml


geniusmonster

Recommended Posts

plz help this is my code first 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> 

2nd 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> 

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; whenever the flash file read mainfood.xml instead only &fooditems; gets grabbed and displayed by the flash somene plz plz help

Edited by geniusmonster
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...