diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-12 22:08:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-12 22:08:10 +0200 |
commit | 23e28754730f5b864fd0e7475ac2596b2b5899cf (patch) | |
tree | 29848ee6f2966ba4ec9ea4a1f3d3d15d14556c1b /shell/source | |
parent | c1aeceb363f188bc6a0de6c5cc1f7a6371b149b4 (diff) |
XML_Parse returns enum XML_Status
Change-Id: Ie4dde5aa412dae05d2629ce5675356db70b2529b
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/all/xml_parser.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/source/all/xml_parser.cxx b/shell/source/all/xml_parser.cxx index e7740d0f4a5c..6c2daaa8a82f 100644 --- a/shell/source/all/xml_parser.cxx +++ b/shell/source/all/xml_parser.cxx @@ -177,13 +177,15 @@ void xml_parser::init() void xml_parser::parse(const char* XmlData, size_t Length, bool IsFinal) { - if (0 == XML_Parse(xml_parser_, XmlData, Length, IsFinal)) + if (XML_STATUS_ERROR == XML_Parse(xml_parser_, XmlData, Length, IsFinal)) + { throw xml_parser_exception( (char*)XML_ErrorString(XML_GetErrorCode(xml_parser_)), (int)XML_GetErrorCode(xml_parser_), XML_GetCurrentLineNumber(xml_parser_), XML_GetCurrentColumnNumber(xml_parser_), XML_GetCurrentByteIndex(xml_parser_)); + } } void xml_parser::set_document_handler( |