46#ifdef HAVE_TEUCHOS_EXPAT
48# define EXPAT_BUFSIZE 8192
58#ifdef HAVE_TEUCHOS_EXPAT
62 XML_Parser parser = XML_ParserCreate(NULL);
64 XML_SetElementHandler(parser, expatStartElementHandler,
65 expatEndElementHandler);
67 XML_SetCharacterDataHandler(parser, expatCharacterDataHandler);
69 XML_SetUserData(parser, (
void*) &(*handler));
74 unsigned int bufsize = EXPAT_BUFSIZE;
75 unsigned char buf[EXPAT_BUFSIZE];
79 unsigned int nRead = s->readBytes(buf, bufsize);
84 XML_Parse(parser, (
char*) buf, bufsize, done);
87 return handler->getObject();
93 return parser.parse();
Expat adapter for the TreeBuildingXMLHandler.
Defines a class for assembling an XMLObject from XML input.
A class providing a simple XML parser. Methods can be overloaded to exploit external XML parsing libr...
Smart reference counting pointer class for automatic garbage collection.
TreeBuildingXMLHandler assembles a XMLObject from your XML input.
Representation of an XML data tree. XMLObject is a ref-counted handle to a XMLObjectImplem object,...
XMLParser consumes characters from an XMLInputStream object, parsing the XML and using a TreeBuilding...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.