Re: [xml] need help with creating new xml file



On Mon, Jul 23, 2001 at 02:59:52PM +0400, Dmitry Tatarkin wrote:
I'm newbee to libxml  and i need to make a simple thing - create xml file.  After reading docs i realise 
that's very simple just 

  a char * is a C string in the current locale according to C books.
  an xmlChar * is a 0 terminated UTF8 encoded string, in practice it's
defined as an unsigned char.

  If you're mixing both you'd better make sure that the string you're
passing is actually valid UTF8 and then make an explicit cast to 
(xmlChar *) or (const xmlChar *) before passing it to the library.

  The warnings are *on purpose* you need to make sure you pass UTF8
to libxml.

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/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]