Jump to content

populate text within cdata from another xml


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...