[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] SAX and escaped characters
- From: Daniel Veillard <veillard redhat com>
- To: Marc Ewert <ewert neofonie de>
- Cc: xml gnome org
- Subject: Re: [xml] SAX and escaped characters
- Date: Fri, 5 Jul 2002 13:19:39 -0400
On Wed, Jul 03, 2002 at 12:52:21PM +0200, Marc Ewert wrote:
> Hi,
>
> I'm using the SAX-interface of libxml2-2.4.22. If I'm parsing the
> following XML-File:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <doc>
> <message attr1="hello" attr2="world &!&">hello world</message>
> <epilogue>&ciao&</epilogue>
> </doc>
>
> I get "&ciao&" for the element, but "world &!&" for the
> attribute from the parser. Why is the & decoded for the element but
> not for the attribute? Is this a bug, or a feature?
feature. That's the only way to be able to save back entities used
in attribute values when using the DOM form.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]