[xml] Remove whitespaces from text nodes

2012-02-14 Thread spam . spam . spam . spam
Hello, I write a C program using the libxml2 library. It takes as argument an input XML file and it displays the content at the screen. This is the input file : library name=library of UM2 book name=Design Patterns: Elements of Reusable Object-Oriented Software

Re: [xml] Problem with public entity references

2012-02-14 Thread Nikolai Weibull
On Fri, Feb 10, 2012 at 02:38, Noam Postavsky npost...@users.sourceforge.net wrote: Nikolai Weibull n...@bitwi.se writes: catalog xmlns=urn:oasis:names:tc:entity:xmlns:xml:catalog prefer=public doesn’t help. I followed along in the debugger a bit, it looks like the catalog isn't being

Re: [xml] Problem with public entity references

2012-02-14 Thread Liam R E Quin
On Tue, 2012-02-07 at 14:08 +0100, Nikolai Weibull wrote: What is going wrong here? (Example files minimized to show the problem.) It looks like there are some bugs, however... a.dtd: !ENTITY % a PUBLIC -//a//b//c so the SYSTEM identifier of %a is actually a.dtd, and system identifers

Re: [xml] Problem with public entity references

2012-02-14 Thread Nikolai Weibull
On Tue, Feb 14, 2012 at 14:06, Liam R E Quin l...@holoweb.net wrote: On Tue, 2012-02-07 at 14:08 +0100, Nikolai Weibull wrote: What is going wrong here?  (Example files minimized to show the problem.) It looks like there are some bugs, however... a.dtd: !ENTITY % a PUBLIC -//a//b//c so

Re: [xml] Remove whitespaces from text nodes

2012-02-14 Thread Michael Ludwig
spam.spam.spam.s...@free.fr schrieb am 14.02.2012 um 10:59 (+0100): I write a C program using the libxml2 library. I would like to have this output (without editing my XML file) : My book A My book B My book C The useless whitespaces are removed from text nodes. Is there a function

Re: [xml] Remove whitespaces from text nodes

2012-02-14 Thread Piotr Sipika
On 02/14/2012 03:13 PM, Michael Ludwig wrote: spam.spam.spam.s...@free.fr schrieb am 14.02.2012 um 10:59 (+0100): Is there a function which do this work? Don't know the C API, but in XSLT there's the function normalize-space() and it does just what you want, so you might want to take a look

Re: [xml] Remove whitespaces from text nodes

2012-02-14 Thread Laurence Rowe
On 14 February 2012 09:59, spam.spam.spam.s...@free.fr wrote: Hello, I write a C program using the libxml2 library. It takes as argument an input XML file and it displays the content at the screen. This is the input file : library name=library of UM2        book name=Design Patterns:

Re: [xml] Remove whitespaces from text nodes

2012-02-14 Thread Michael Ludwig
Laurence Rowe schrieb am 14.02.2012 um 20:58 (+): On 14 February 2012 09:59, spam.spam.spam.s...@free.fr wrote: I would like to have this output (without editing my XML file) : My book A My book B My book C The useless whitespaces are removed from text nodes. Is there a