Poco::XML

class AbstractContainerNode

Library: XML
Package: DOM
Header: Poco/DOM/AbstractContainerNode.h

Description

AbstractContainerNode is an implementation of Node that stores and manages child nodes.

Child nodes are organized in a single linked list.

Inheritance

Direct Base Classes: AbstractNode

All Base Classes: AbstractNode, DOMObject, EventTarget, Node

Known Derived Classes: Document, DocumentFragment, DocumentType, Element, Entity

Member Summary

Member Functions: appendChild, dispatchNodeInsertedIntoDocument, dispatchNodeRemovedFromDocument, findAttribute, findElement, findNode, firstChild, getNodeByPath, getNodeByPathNS, hasAttributeValue, hasAttributes, hasChildNodes, insertAfterNP, insertBefore, lastChild, namesAreEqual, removeChild, replaceChild

Inherited Functions: addEventListener, appendChild, attributes, autoRelease, bubbleEvent, captureEvent, childNodes, cloneNode, copyNode, dispatchAttrModified, dispatchCharacterDataModified, dispatchEvent, dispatchNodeInserted, dispatchNodeInsertedIntoDocument, dispatchNodeRemoved, dispatchNodeRemovedFromDocument, dispatchSubtreeModified, duplicate, events, eventsSuspended, firstChild, getNodeByPath, getNodeByPathNS, getNodeValue, hasAttributes, hasChildNodes, innerText, insertAfterNP, insertBefore, isSupported, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, ownerDocument, parentNode, prefix, previousSibling, release, removeChild, removeEventListener, replaceChild, setNodeValue, setOwnerDocument

Constructors

AbstractContainerNode protected

AbstractContainerNode(
    Document * pOwnerDocument
);

AbstractContainerNode protected

AbstractContainerNode(
    Document * pOwnerDocument,
    const AbstractContainerNode & node
);

Destructor

~AbstractContainerNode protected virtual

~AbstractContainerNode();

Member Functions

appendChild virtual

Node * appendChild(
    Node * newChild
);

firstChild virtual

Node * firstChild() const;

getNodeByPath virtual

Node * getNodeByPath(
    const XMLString & path
) const;

getNodeByPathNS virtual

Node * getNodeByPathNS(
    const XMLString & path,
    const NSMap & nsMap
) const;

hasAttributes virtual

bool hasAttributes() const;

hasChildNodes virtual

bool hasChildNodes() const;

insertAfterNP virtual

Node * insertAfterNP(
    Node * newChild,
    Node * refChild
);

insertBefore virtual

Node * insertBefore(
    Node * newChild,
    Node * refChild
);

lastChild virtual

Node * lastChild() const;

removeChild virtual

Node * removeChild(
    Node * oldChild
);

replaceChild virtual

Node * replaceChild(
    Node * newChild,
    Node * oldChild
);

dispatchNodeInsertedIntoDocument protected virtual

void dispatchNodeInsertedIntoDocument();

dispatchNodeRemovedFromDocument protected virtual

void dispatchNodeRemovedFromDocument();

findAttribute protected static

static const Attr * findAttribute(
    const XMLString & name,
    const Node * pNode,
    const NSMap * pNSMap
);

findElement protected static

static const Node * findElement(
    const XMLString & name,
    const Node * pNode,
    const NSMap * pNSMap
);

findElement protected static

static const Node * findElement(
    int index,
    const Node * pNode,
    const NSMap * pNSMap
);

findElement protected static

static const Node * findElement(
    const XMLString & attr,
    const XMLString & value,
    const Node * pNode,
    const NSMap * pNSMap
);

findNode protected static

static const Node * findNode(
    XMLString::const_iterator & it,
    const XMLString::const_iterator & end,
    const Node * pNode,
    const NSMap * pNSMap,
    bool & indexBound
);

hasAttributeValue protected

bool hasAttributeValue(
    const XMLString & name,
    const XMLString & value,
    const NSMap * pNSMap
) const;

namesAreEqual protected static

static bool namesAreEqual(
    const Node * pNode1,
    const Node * pNode2,
    const NSMap * pNSMap
);

namesAreEqual protected static

static bool namesAreEqual(
    const Node * pNode,
    const XMLString & name,
    const NSMap * pNSMap
);

Variables

WILDCARD protected static

static const XMLString WILDCARD;