[xml] Build DOM tree manually from ASCII file and getting data into xmlChar



Hi,

I am reading a (non-xml) file and building the DOM tree manually using xmlNewDoc, xmlNewDocNode, xmlNewChild (per the sample on the web site).

I am confused how I get input that I read into a char * array into an xmlChar* buffer...

Right now, I am using BAD_CAST to force the issue, but I need to do it "right" for deployment as I may be getting french characters in the input file...

I'm new to the libxml2, but wow, is it ever great!

Thanks,
Steve Williams





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