RE: [xml] Problems again, functions that don't existe in HP-UX, u rgent (I k now that all say this)
- From: "Keim, Markus" <markus_keim ordat com>
- To: "'xml gnome org'" <xml gnome org>
- Cc: "'Pinho external infineon com'" <Pinho external infineon com>
- Subject: RE: [xml] Problems again, functions that don't existe in HP-UX, u rgent (I k now that all say this)
- Date: Thu, 29 Jan 2004 10:32:24 +0100
Maybe it's a good idea to set xmlKeepBlanksDefault(0)
*before* you're parsing the document...
And (just for curiosity), it's a little terse to test
on a platform you've to support 0 days before deadline,
isn't it?
-----Original Message-----
From: Pinho external infineon com [mailto:Pinho external infineon com]
Sent: Wednesday, January 28, 2004 10:25 PM
To: veillard redhat com
Cc: steve rinax com; xml gnome org
Subject: RE: [xml] Problems again, functions that don't
existe in HP-UX,
u rgent (I k now that all say this)
Hi Daniel,
First of all, thank you for all the support, I know I've
been quite a drag.
I already tried before to use xmlKeepBlanksDefault(0) but
with no efective
results but I don't use xmlParseMemory, I use xmlParseFile
and xmlParseDoc,
is the effect any diferent, I though that they all would have the same
behavior.
[Code]
xmlDocPtr doc;
doc = xmlParseFile(xmlFileName);
xmlKeepBlanksDefault(0);
[/Code]
Thanks again for the support,
Luís Pinho
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: quarta-feira, 28 de Janeiro de 2004 18:16
To: Pinho Luis (IFPT IT External)
Cc: steve rinax com; xml gnome org
Subject: Re: [xml] Problems again, functions that don't
existe in HP-UX, u
rgent (I k now that all say this)
On Wed, Jan 28, 2004 at 05:54:02PM +0100,
Pinho external infineon com wrote:
Sorry, I've never worked with HP-UX before, so any major
compilation
is kind of a mistery to me.
./configure ; make ; make install
I made the code based on the API posted on your libxml2 site, to
create a xmlDocPtr I used xmlReadDoc and xmlReadFile to create the
pointer from a file or from a char* (Because this functions
allowed me
to set na option to ignore whitespaces). As this functions
don't exist
in HP-UX and I've never worked with HP-UX (a collegue of
mine does the
instalation) I was hopping that you or someone with more
know how that
me of the libxml2 could get me some way to create a
xmlDocPtr without
any ignorable whitespaces with the functions that are
implemented in
HP-UX.
Sorry about my lack of experience in libxml2 and if you
could get me
na alternative to the function I would be very thankful
use xmlDocPtr xmlParseMemory(const char *buffer, int size);
http://xmlsoft.org/html/libxml-parser.html#xmlParseMemory
and to change the parser behaviour to not build blanks nodes,
see the FAQ
http://xmlsoft.org/FAQ.html#Developer
item #2
http://xmlsoft.org/html/libxml-parser.html#xmlKeepBlanksDefault
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]