[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Re: [xml] Libxml Tree: prevent merge text nodes
- From: phedon club-internet fr
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: Re: [xml] Libxml Tree: prevent merge text nodes
- Date: Thu, 15 Sep 2005 17:51:02 +0200
I am confused here, as if I have <x>A<y></y>B</x>
and I call xmlUnlinkNode() on node <y>, it does NOT merge
text nodes "A" and "B" automatically into "AB"...
Am I wrong ??
----Message d'origine----
>Date: Wed, 14 Sep 2005 12:21:35 -0400
>De: Daniel Veillard <veillard redhat com>
>A: phedon club-internet fr
>Copie à: xml gnome org
>Sujet: Re: [xml] Libxml Tree: prevent merge text nodes
>
>On Wed, Sep 14, 2005 at 06:03:47PM +0200, phedon club-internet fr wrote:
>> Hi all,
>>
>> I use the tree API of libxml (nice btw).
>> By default when adding a text node next to another text node, the two nodes are merged into one automatically.
>> My question is:
>> Is this behavior configurable or is there any way to prevent libxml from doing this ?
>
> This is not configurable. You really should not keep adjacent text nodes
>it will break some part of libxml2 like XPath. You may try to avoid this
>by playing with text->name values, but it's risky and not something I
>recommend.
>
>Daniel
>
>--
>Daniel Veillard | Red Hat Desktop team http://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]