On May 9, 11:35 am, "Joseph J. Kesselman" <keshlam-nos...@comcast.net>
wrote:
Quote:
<![CDATA[]]is just text content, as far as any properly written XML
application is concerned. It's an alternative to individually escaping
characters, <![CDATA[<&>]]is precisely equivalent to the <&>
sequence. That's all it is.
>
If you think you need to put XML/HTML content into a CDATA section, you
are almost undoubtedly wrong. You should be able to just produce the
proper document structure directly.
>
You didn't say what tools you're using, so it's hard to give you
specific advice... but XSLT would have no trouble generating your
desired output, nor should any other halfway reasonable XML tooling.
Thanks for the explanation. I'm using SimpleXML and PHP to read the
xml file. It's all good except the <descriptiontag with all those
embedded HTML tags that i'm stock with.
I've search and search and found CDATA as a probable solution but was
never sure of it. Now that i'm reading you, it's obvious that it's not
the path to take. Maybe you could guide me on how to generate proper
HTML using simpleXML in PHP.
Thanks
Marco