Menu

support EUC-KR encoded xml document and UniversalNSContext

numi
2014-02-24
2014-03-03
  • numi

    numi - 2014-02-24

    source:
    VTDGen gen = new VTDGen();
    gen.parseFile("euckr encoded xmlfile", true);

    error print :
    ParserException: com.ximplewate.ParseException: XML decl Error: invalid encoding
    Line Number: 1 Offset: 30

    and does not Throw Exception in parseFile()
    only appear error log in system.out

    1. throw exception unsupported encoding
    2. plz support ecu-kr encoding. VTDGen does not have EUCKRReader

    in general xml document with xpath use NamespaceContext object
    and UniversalNamespaceContext parse namespace and regist it as namespace uri in target xml

    but vtd-xml xpath not ease of use with xpath namespace.

    autoPilot.declareXPathNameSpace("xxx", "uri:xxx");
    ...
    ...
    and many xpath namespace list.

    programer alway know namespace in xml
    but program logic process many difference xml and many namespace uri and prefix

    how to automatic regist all namespace and uri in xml?

     

    Last edit: numi 2014-02-24
  • jimmy zhang

    jimmy zhang - 2014-02-28

    Do you have a URL link to EUCKRReader spec?

     
  • numi

    numi - 2014-03-03

    Http://encoding.spec.whatwg.org/#euc-kr
    I'm not sure that comport link

     

Log in to post a comment.