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]