Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: parsing reserved chars with xml::simple

by Vautrin (Hermit)
on Feb 17, 2004 at 16:14 UTC ( #329643=note: print w/replies, xml ) Need Help??

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:
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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://329643]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2022-05-20 23:46 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.