Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1606

Failing in parsing Unicode XML file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.7.0
    • None
    • SAX/SAX2
    • None
    • Operating System: Linux, Kernel Version:2.4 Software: xerces 1.7.0

    Description

      Hello all,

      I am using xerces 1.7.0 and want to parse the following page in Unicode format.

      <?xml version="1.0" encoding="UTF-8"?>
      <vxml version="2.0">

      <form>
      <block>
      <prompt xml:lang="zh-CN">
      <paragraph>
      <sentence>???????</sentence>
      </paragraph>
      </prompt>
      </block>
      </form>
      </vxml>

      while parsing it is failing in parse->parse ( ) and caught by catch (const SAXParseException & exception) .

      Can anyone give me idea about which version of xerces-c can be used to parse Unicode file?

      Waiting for responses from you.

      Thanx & Rgds,
      Shailendra

      --------------------------------------------------------------------------------------------------------------------------------------------

      try {
      if (isDefaults && lastParse != DocumentParser::DEFAULTS)

      { parser->parse(MemBufInputSource(DUMMY_VXML_DEFAULTS_DOC, DUMMY_VXML_DEFAULTS_DOC_SIZE, "vxml 1.0 defaults"), false); lastParse = DocumentParser::DEFAULTS; }

      else if (!isDefaults && lastParse != DocumentParser::DOCUMENT)

      { parser->parse(MemBufInputSource(DUMMY_VXML_DOC, DUMMY_VXML_DOC_SIZE, "vxml 1.0 dtd"), false); lastParse = DocumentParser::DOCUMENT; }

      }

      catch (const SAXParseException & exception)

      { log.StartDiagnostic(0) << L"DocumentParser::FetchDocument - Parse error " << L"in file \"" << XMLChToVXIchar(exception.getSystemId()) << L"\", line " << exception.getLineNumber() << L", column " << exception.getColumnNumber() << L" - " << XMLChToVXIchar(exception.getMessage()); log.EndDiagnostic(); log.LogError(999, SimpleLogger::MESSAGE, L"unable to load VXML DTD"); return 4; }

      Attachments

        1. VXIlog.txt
          0.7 kB
          Shailendra Verma
        2. test1012.1.vxml
          0.4 kB
          Shailendra Verma

        Activity

          People

            Unassigned Unassigned
            shailendra Shailendra Verma
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: