44#ifdef HAVE_TEUCHOS_EXPAT
50void expatStartElementHandler(
void* handler,
52 const XML_Char** attr)
56 std::string tag = name;
57 Teuchos::map<std::string, std::string> attributes;
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;
72void expatEndElementHandler(
void* handler,
77 std::string tag = name;
82void expatCharacterDataHandler(
void* handler,
86 char* str =
new char[len+1];
91 std::string chars = str;
Expat adapter for the TreeBuildingXMLHandler.
Defines a class for assembling an XMLObject from XML input.
TreeBuildingXMLHandler assembles a XMLObject from your XML input.
void characters(const std::string &chars)
Process character data.
void startElement(const std::string &tag, const Map &attributes)
Receive notification of the start of an element.
int endElement(const std::string &tag)
Receive notification of the end of an element.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos,...