SAX2Wrapper is used to construct the appropriate UAP tree from an SAX file.
More...
#include <SAX2Wrapper.hpp>

Public Member Functions | |
| SAX2Wrapper () | |
| Creates an SAX reader. | |
| ~SAX2Wrapper () | |
| Destructor. | |
| bool | XMLFileToUAPRep (const std::string &file_name, UAPNode *root, bool convert=true) |
| Reads in an XML file (or files if there are include statements) and constructs the appropriate UAP tree. | |
SAX2Wrapper is used to construct the appropriate UAP tree from an SAX file.
Definition at line 45 of file SAX2Wrapper.hpp.
| bool SAX2Wrapper::XMLFileToUAPRep | ( | const std::string & | file_name, | |
| UAPNode * | root, | |||
| bool | convert = true | |||
| ) |
Reads in an XML file (or files if there are include statements) and constructs the appropriate UAP tree.
The constructed UAP tree has the root <UAPRoot> which in turn has the node <input>. Each child of the <input> is named <file> and contains the information from one SAX input file. Note: The name component of a UAPNode node will be the XML localname. Not the XML qname.
| file_name | The XML file to use. | |
| root | The root node for building the UAP tree. If Null then a root node will be created. | |
| convert | Converts entities like "&" to "&". return True if there are no errors in parsing. False otherwise |
Definition at line 23 of file SAX2Wrapper.cpp.
1.5.7