No that's not what I want.
As I said before, I don't want to edit the XML file.
I have whitespaces in the XML file, it's a fact.
Now I want to parse it with libxml2.
There is a first solution which works correctly with libxslt.
There is a second solution with SAX but I have not yet tested this solution.
Anyway, there seems to have no other solution with libxml2 only.
Thanks for your help.

----- Mail original -----
De: "Liam R E Quin" <l...@holoweb.net>
À: "spam spam spam spam" <spam.spam.spam.s...@free.fr>
Cc: "Michael Ludwig" <mil...@gmx.de>, xml@gnome.org
Envoyé: Mercredi 15 Février 2012 16:13:03
Objet: Re: [xml] Remove whitespaces from text nodes

On Wed, 2012-02-15 at 10:04 +0100, spam.spam.spam.s...@free.fr wrote:

> There is a solution using the libxslt library and applying a stylesheet to 
> the document...
> But I am wondering if there is a way to do this job using just libxml2.
> 
> Have you any idea about this?

Use <title>My Book C</title> without the spaces you don't want :-=)

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to