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!

CDATA Query

Status
Not open for further replies.

villan59

Programmer
Dec 26, 2010
1
GB
Hi - I am having a problem with the syntax within an XML file I have created. Basically I am trying to use a CDATA block (code) on the same line as other attributes...

<example>
<item label="label string" data="data string" code=<![CDATA[string <br> second string <br> third string]]>
</example>

I am reading the attribute values through Flash Actionscript and although I can get values of label and data I am unable to get the code value. Obviously I have the syntax wrong in the XML file but I am struggling to discover what it. Any help would be appreciated
 
There is no such thing as CDATA section for attribute value. Just escape those xml escapable entities (the opening and closing angle brackets in this case).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top