Re: [xml] customized output buffer



On Fri, Apr 27, 2001 at 04:01:18PM -0700, Joe McAlerney wrote:
Hello again,

I'm attempting to roll my own output buffer.  The example provided in
I/O document happens to be exactly what I need.  The problem is, the
xmlFileWrite function pointer is declared static in xmlIO.c.  Since it
is static, I can not declare a function prototype in my file. 
Therefore, we get an undefined reference to xmlFileWrite when trying to
compile.  Does that make sense?

I've placed my function in xmlIO.c for testing purposes, and it works
fine, but obviously this isn't scalable.  I have a suspicion that I'm
missing something.  Perhaps a configure time option?

  Hum, I recently cleaned up the functions exported from libxml.
xmlFileWrite() is one of them, honnestly if you are redefining an IO
layer adding the equivalent of xmlFileWrite() (one line of code) in your
own code is probably more maintainable. And I don't think those kind
of basic IO routine of libxml should really be exported.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
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]