RE: [xml] Problems again, functions that don't existe in HP-UX, u rgent (I k now that all say this)
- From: Pinho external infineon com
- 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)
- Date: Wed, 28 Jan 2004 22:25:28 +0100
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]