weekendatbernies
Technical User
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>&Address;</string><string>
Does anyone know if this can be achieved?
Thanks.
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>&Address;</string><string>
Does anyone know if this can be achieved?
Thanks.