[xml] xmlSaveFormatFileEnc() creating invalid XML



Here is a simple test case that takes the text from an apparently-valid
UTF-8 file, puts it in a text child node, and then writes the XML file
out. But the XML file fails validation with xmllint with this error:
./output.xml:4: parser error : PCDATA invalid Char value 12

Am I doing something wrong?

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com

Attachment: input.txt
Description: Text document

Attachment: test_writes_invalid.c
Description: Text Data



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