in reply to parsing reserved chars with xml::simple

Well, & is a reserved characther. You need to escape it as an entity, i.e. &. If you do not like escaping entities, you can use the following paradigm:
<![CDATA[DATA GOES HERE]]>
Using CDATA tags, you can put whatever you want within the [], with the exception of the end tag, ]]>. Follow this link to safari for a bigger example.

Want to support the EFF and FSF by buying cool stuff? Click here.

Replies are listed 'Best First'.
Re: Re: parsing reserved chars with xml::simple
by inman (Curate) on Feb 18, 2004 at 09:58 UTC
    You should also test XML against a DTD or XML Schema. This will immediately validate the XML content before it is sucked in by your app. Working in this way ensures that you spend your app programming time solving the problem rather than error handling badly formed XML.

    See this article introducing XML Schema.