Library: XML
Package: DOM
Header: Poco/DOM/DOMBuilder.h
This class builds a tree representation of an XML document, according to the W3C Document Object Model, Level 1 and 2 specifications.
The actual XML parsing is done by an XMLReader, which must be supplied to the DOMBuilder.
Direct Base Classes: DTDHandler, ContentHandler, LexicalHandler
All Base Classes: ContentHandler, DTDHandler, LexicalHandler
Member Functions: appendNode, characters, comment, endCDATA, endDTD, endDocument, endElement, endEntity, endPrefixMapping, ignorableWhitespace, notationDecl, parse, parseMemoryNP, processingInstruction, setDocumentLocator, setupParse, skippedEntity, startCDATA, startDTD, startDocument, startElement, startEntity, startPrefixMapping, unparsedEntityDecl
Inherited Functions: characters, comment, endCDATA, endDTD, endDocument, endElement, endEntity, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startDocument, startElement, startEntity, startPrefixMapping, unparsedEntityDecl
DOMBuilder(
XMLReader & xmlReader,
NamePool * pNamePool = 0
);
Creates a DOMBuilder using the given XMLReader. If a NamePool is given, it becomes the Document's NamePool.
virtual ~DOMBuilder();
Destroys the DOMBuilder.
virtual Document * parse(
const XMLString & uri
);
virtual Document * parse(
InputSource * pInputSource
);
Parse an XML document from a location identified by an InputSource.
virtual Document * parseMemoryNP(
const char * xml,
std::size_t size
);
Parses an XML document from memory.
void appendNode(
AbstractNode * pNode
);
void characters(
const XMLChar ch[],
int start,
int length
);
See also: Poco::XML::ContentHandler::characters()
void comment(
const XMLChar ch[],
int start,
int length
);
See also: Poco::XML::LexicalHandler::comment()
void endCDATA();
See also: Poco::XML::LexicalHandler::endCDATA()
void endDTD();
See also: Poco::XML::LexicalHandler::endDTD()
void endDocument();
See also: Poco::XML::ContentHandler::endDocument()
void endElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname
);
See also: Poco::XML::ContentHandler::endElement()
void endEntity(
const XMLString & name
);
See also: Poco::XML::LexicalHandler::endEntity()
void endPrefixMapping(
const XMLString & prefix
);
void ignorableWhitespace(
const XMLChar ch[],
int start,
int length
);
void notationDecl(
const XMLString & name,
const XMLString * publicId,
const XMLString * systemId
);
See also: Poco::XML::DTDHandler::notationDecl()
void processingInstruction(
const XMLString & target,
const XMLString & data
);
void setDocumentLocator(
const Locator * loc
);
void setupParse();
void skippedEntity(
const XMLString & name
);
void startCDATA();
See also: Poco::XML::LexicalHandler::startCDATA()
void startDTD(
const XMLString & name,
const XMLString & publicId,
const XMLString & systemId
);
See also: Poco::XML::LexicalHandler::startDTD()
void startDocument();
void startElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname,
const Attributes & attributes
);
void startEntity(
const XMLString & name
);
See also: Poco::XML::LexicalHandler::startEntity()
void startPrefixMapping(
const XMLString & prefix,
const XMLString & uri
);
void unparsedEntityDecl(
const XMLString & name,
const XMLString * publicId,
const XMLString & systemId,
const XMLString & notationName
);