class axl::xml::ExpatParserRoot
#include <axl_xml_ExpatParser.h>
class ExpatParserRoot: public axl::sl::Handle
{
public:
// methods
bool
create(const sl::StringRef& encoding = NULL);
bool
createNs(
const sl::StringRef& encoding,
char separator
);
bool
createNs(char separator);
XML_Error
getLastErrorCode() const;
err::Error
getLastError() const;
int
getLineNumber() const;
int
getColumnNumber() const;
size_t
getByteOffset() const;
void*
getUserData();
void
setUserData(void* userData);
void
setElementHandler(
XML_StartElementHandler startHandler,
XML_EndElementHandler endHandler
);
void
setStartElementHandler(XML_StartElementHandler handler);
void
setEndElementHandler(XML_EndElementHandler handler);
void
setCharacterDataHandler(XML_CharacterDataHandler handler);
void
setProcessingInstructionHandler(XML_ProcessingInstructionHandler handler);
void
setCommentHandler(XML_CommentHandler handler);
void
setCdataSectionHandler(
XML_StartCdataSectionHandler startHandler,
XML_EndCdataSectionHandler endHandler
);
void
setStartCdataSectionHandler(XML_StartCdataSectionHandler handler);
void
setEndCdataSectionHandler(XML_EndCdataSectionHandler handler);
void
setDefaultHandler(XML_DefaultHandler handler);
void
setDefaultHandlerExpand(XML_DefaultHandler handler);
void
setDoctypeDeclHandler(
XML_StartDoctypeDeclHandler startHandler,
XML_EndDoctypeDeclHandler endHandler
);
void
setStartDoctypeDeclHandler(XML_StartDoctypeDeclHandler handler);
void
setEndDoctypeDeclHandler(XML_EndDoctypeDeclHandler handler);
void
setNotationDeclHandler(XML_NotationDeclHandler handler);
void
setNamespaceDeclHandler(
XML_StartNamespaceDeclHandler startHandler,
XML_EndNamespaceDeclHandler endHandler
);
void
setStartNamespaceDeclHandler(XML_StartNamespaceDeclHandler handler);
void
setEndNamespaceDeclHandler(XML_EndNamespaceDeclHandler handler);
void
setNotStandaloneHandler(XML_NotStandaloneHandler handler);
void
setUnknownEncodingHandler(XML_UnknownEncodingHandler handler);
bool
parse(
const void* p,
size_t size,
bool isFinal
);
bool
parseBuffer(
size_t size,
bool isFinal
);
bool
parseFile(
const sl::StringRef& fileName,
size_t blockSize = -1
);
void*
getBuffer(size_t size);
};