The function XmlOutcome GetResult is part of the RapidXML library in C++. It is used to retrieve the result of parsing an XML document using RapidXML.
The XmlOutcome parameter is used to specify the type of outcome that the function should return. The outcome can either be success or failure, and can be specified using the XmlParseError object.
Here are some code examples that illustrate the use of XmlOutcome GetResult:
In this example, a new XmlDocument object is created and the Parse function is used to parse an XML document. The resulting outcome is stored in the "result" object. If the outcome is a failure, the description of the error is printed to the console. If the outcome is a success, the name of the first node in the document is printed to the console.
In this example, the ParseFile function is used to parse an XML file rather than a string. The same procedure is followed as in the first example to print either the error description or the name of the first node in the document.
These examples are using the RapidXML library in C++.
C++ (Cpp) XmlOutcome::GetResult - 30 examples found. These are the top rated real world C++ (Cpp) examples of XmlOutcome::GetResult extracted from open source projects. You can rate examples to help us improve the quality of examples.