all groups > flash actionscript > october 2006 >
You're in the

flash actionscript

group:

XML parsing broken up because of "<br>"


" -- flash actionscript ">
XML parsing broken up because of "<br>" sylvainhugues
10/25/2006 9:10:52 PM
flash actionscript: Hello, I make a XML connector component parse a XML document.
In a node, there is a "<br />" (return to line in HTML)
EXEMLE :
[B]<book>
<page>
Here some text and a <br /> here ! the code s broken up here
</page>
</book>[/B]

Problem :
My XML connector considere the <br /> as the begining or the end of a node !...
How to avoid this <br /> or other any HTML element when parsing some XML ?
Thanks, Sylvain.
Re: XML parsing broken up because of "<br>" NSurveyor
10/25/2006 10:40:49 PM
Wrap all your text in CDATA tags:

<book>
<page>
![CDATA[Here some text and a <br /> here !]]
</page>
AddThis Social Bookmark Button