OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS