Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.7.0
-
None
-
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)
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; }