[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Re: [xml] ampersand conversion
- From: <oliverst online de>
- To: Igor Zlatkovic <igor zlatkovic com>
- Cc: xml gnome org
- Subject: Re: Re: [xml] ampersand conversion
- Date: Wed, 18 May 2005 16:12:01 +0200
I thought that, but I just did a small test and the libxml2 is doing
totally different things in some cases. Look at this:
test-sample "<>\"'&"
xmlNodeSetContent
<test><>"'</test>
totally drops the ampersand - valid XML
xmlNewNode
<<>"'&/>
did nothing - invalid XML
xmlNewProp (name)
<test <>"'&="test"/>
did nothing - invalid XML
xmlNewProp (value)
<test test="<>"'&"/>
encoded everything properly, that could cause problems - valid XML
IMO the last case is what should happen in all the four cases, because
it avoids all the problems, has all the data and is valid XML.
I haven't tested all the other things I never use like xmlNewNs etc.,
but maybe the behavior differs even more.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]