Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display content from XML file inside XML

Status
Not open for further replies.

weekendatbernies

Technical User
Nov 29, 2011
1
AU
I am trying to get a Flex Messaging Command to display a contact list xml file inside an xml response using ENTITIES to declare the content source. This works fine for txt files, but not for xml.
My last try was using CDATA to parse out the text from the "contacts.xml" but to no avail.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE test [ <!ENTITY Address SYSTEM "/home/contacts.xml"> ]>
<amfx ver="3" xmlns=" <body>
<object type="flex.messaging.messages.CommandMessage">
<traits>
<string>body</string><string>clientId</string><string>correlationId</string>
<string>destination</string><string>headers</string><string>messageId</string>
<string>operation</string><string>timestamp</string><string>timeToLive</string>
</traits><object><traits />
</object>
<null /><string /><string />
<object>
<traits>
<string>DSId</string><string>DSMessagingVersion</string>
</traits>
<string>nil</string><int>1</int>
</object>
<string><![CDATA[&Address;]]></string>
<int>5</int><int>0</int><int>0</int>
</object>
</body>
</amfx>

The response is as follows:-
..snip
<null/><string>&amp;Address;</string><string>

Does anyone know if this can be achieved?
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top