44 #ifdef HAVE_TEUCHOS_EXPAT
48 using namespace Teuchos;
50 void expatStartElementHandler(
void* handler,
52 const XML_Char** attr)
56 std::string tag = name;
62 for (
int i=0; attr[i] != 0; i+=2)
64 std::string key = attr[i];
65 std::string val = attr[i+1];
66 attributes[key] = val;
72 void expatEndElementHandler(
void* handler,
77 std::string tag = name;
82 void expatCharacterDataHandler(
void* handler,
86 char* str =
new char[len+1];
91 std::string chars = str;
98 #endif // HAVE_TEUCHOS_EXPAT
void characters(const std::string &chars)
Process character data.
Defines a class for assembling an XMLObject from XML input.
int endElement(const std::string &tag)
Receive notification of the end of an element.
void startElement(const std::string &tag, const Map &attributes)
Receive notification of the start of an element.
Expat adapter for the TreeBuildingXMLHandler.
TreeBuildingXMLHandler assembles a XMLObject from your XML input.