|
Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
54 "filename", &
filename,
"XML file to parse" );
62 bool caughtError =
false;
65 out <<
"Parsed XML object: \n" << obj.
toString() << std::endl;
67 catch (std::runtime_error &err) {
69 out <<
"XML Parser caught exception:\n" << err.what() <<
"\n";
std::string toString() const
Represent this node and its children as a std::string.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
static CommandLineProcessor & getCLP()
Return the CLP to add options to.
TEUCHOS_UNIT_TEST(ConstNonconstObjectContainer, create)
#define TEST_EQUALITY_CONST(v1, v2)
Assert the equality of v1 and constant v2.
void setOption(const char option_true[], const char option_false[], bool *option_val, const char documentation[]=NULL)
Set a boolean option.
XMLParser consumes characters from an XMLInputStream object, parsing the XML and using a TreeBuilding...
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
XMLObject parse()
Consume the XMLInputStream to build an XMLObject.