Re: [xml-dev] Error and Fatal Error

From
David Carlisle <>
To
Date
2011-07-17T21:26:27Z
ID
<>
Thread
Re: [xml-dev] Error and Fatal Error
On 17/07/2011 22:13, Stephen D Green wrote:
> I don't buy that. And not so easy to replace '<' with
> '&lt;' in just the element content and not the tags.
> ----

I thought you indicated that you were taking strings from user supplied 
form data and adding it to xml, in which case you need to escape the xml 
syntax characters before you add it to the xml so there is no element 
content and no tags to worry about. You don't want to add it then try to 
parse to find element content afterwards as if adding the content has 
made the xml non well formed you've already lost.

David