Re: [xml] Decoding in attributes broken for libxml2-2.6.2
- From: Daniel Veillard <veillard redhat com>
- To: Marc Ewert <ewert neofonie de>
- Cc: xml gnome org
- Subject: Re: [xml] Decoding in attributes broken for libxml2-2.6.2
- Date: Wed, 26 Nov 2003 05:59:12 -0500
On Mon, Nov 24, 2003 at 05:38:24PM +0100, Marc Ewert wrote:
Hi,
I have a simple test-xml:
<?xml version="1.0" encoding="UTF-8"?>
<Document uri="http://local/?a=1&b=2" />
with an encoded ampersand in an attribute.
SAX sucks w.r.t. handling of entities in attributes.
Libxml2 need to be able to edit entities in atributes, by default
it tries to preserve them. This generate this kind of mess.
You have 2 solutions:
- don't use SAX
or
- ask the parser to replace entities values, in that case
the substitution will already be done before the callback level.
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]