#include <DOMLSParserFilter.hpp>
Public Types | |
Public Contants | |
enum | FilterAction { FILTER_ACCEPT = 1, FILTER_REJECT = 2, FILTER_SKIP = 3, FILTER_INTERRUPT = 4 } |
Constants returned by acceptNode. More... | |
Public Member Functions | |
Destructor | |
virtual | ~DOMLSParserFilter () |
Destructor. | |
Functions introduced in DOM Level 3 | |
virtual FilterAction | acceptNode (DOMNode *node)=0 |
This method will be called by the parser at the completion of the parsing of each node. | |
virtual FilterAction | startElement (DOMElement *node)=0 |
The parser will call this method after each DOMElement start tag has been scanned, but before the remainder of the DOMElement is processed. | |
virtual DOMNodeFilter::ShowType | getWhatToShow () const =0 |
Tells the DOMLSParser what types of nodes to show to the method DOMLSParserFilter::acceptNode . | |
Protected Member Functions | |
Hidden constructors | |
DOMLSParserFilter () |
|
Constants returned by acceptNode.
|
|
|
|
Destructor.
|
|
This method will be called by the parser at the completion of the parsing of each node. The node and all of its descendants will exist and be complete. The parent node will also exist, although it may be incomplete, i.e. it may have additional children that have not yet been parsed. Attribute nodes are never passed to this function. From within this method, the new node may be freely modified - children may be added or removed, text nodes modified, etc. The state of the rest of the document outside this node is not defined, and the affect of any attempt to navigate to, or to modify any other part of the document is undefined. For validating parsers, the checks are made on the original document, before any modification by the filter. No validity checks are made on any document modifications made by the filter. If this new node is rejected, the parser might reuse the new node and any of its descendants.
|
|
Tells the
If a node is not shown to the filter using this attribute, it is automatically included in the DOM document being built. See
|
|
The parser will call this method after each
The intent is to allow the element, including any children, to be efficiently skipped. Note that only element nodes are passed to the startElement function. The element node passed to startElement for filtering will include all of the attributes, but none of the children nodes. The
|