[xml] xmlReadDoc and UTF-16LE

2014-12-29 Thread Denis
Is there a way to read a UTF-16LE Xml document with xmlReadDoc? Using this line of code _document = xmlReadDoc( reinterpret_cast< const xmlChar * >( data.c_str() ), 0, "UTF-16LE", XML_PARSE_PEDANTIC | XML_PARSE_NOBLANKS | XML_PARSE_NONET ) instead of _document = xmlReadDoc( reinterpret_cast<

[xml] xmlReadDoc and UTF-16LE

2014-12-29 Thread Denis
Is there a way to read a UTF-16LE Xml document with xmlReadDoc? Using this line of code _document = xmlReadDoc( reinterpret_cast< const xmlChar * >( data.c_str() ), 0, "UTF-16LE", XML_PARSE_PEDANTIC | XML_PARSE_NOBLANKS | XML_PARSE_NONET ) instead of _document = xmlReadDoc( reinterpret_cast<

[xml] help with xmlTextReaderRead (with DTD validation)

2008-07-29 Thread Denis Bourgeois
Although I have contributed to a few (free) scientific applications (in C and F77) for quite some time, I'm new to xml and libxml2 (this may explain the naiveté of my question): I'm writing a C parser for an XML input (input only, no file editing or writing out) - so the xmlTextReader API (htt