[xml] DTD - external subset - encoding



Hi,

I have a XML document that references an external subset. Both are 
encoded in UTF-16. Xmllint seems to choke on the external subset file.
I haven't found anything about encoding problems with external subsets 
in the mail archives & bug list.


C:\dev\libxml2\lib\xml-2-6-6-xslt-1-1-2>xmllint parament_test.xml 
--valid --noent
parament_test.dtd:1: parser error : internal error
 ?<
^
parament_test.dtd:1: parser error : DOCTYPE improperly terminated
 ?<
^
parament_test.dtd:1: parser error : Input is not proper UTF-8, indicate 
encoding !
 ?<
^
parament_test.dtd:1: error: Bytes: 0xFF 0xFE 0x3C 0x00
 ?<
^
parament_test.dtd:1: parser error : Start tag expected, '<' not found
 ?<
  ^

C:\dev\libxml2\lib\xml-2-6-6-xslt-1-1-2>xmllint --version
xmllint: using libxml version 20606
    compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer 
XInclude Iconv Unicode Regexps Automata Schemas

I'm working on a w2k machine.
I have attached the test used.

Any hints?


Greetings,

Kasimier

Attachment: parament_test.xml
Description: Text Data

Attachment: parament_test.dtd
Description: Binary data



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