22 #if !defined(XERCESC_INCLUDE_GUARD_DOMNODE_HPP)
23 #define XERCESC_INCLUDE_GUARD_DOMNODE_HPP
25 #include <xercesc/util/XercesDefs.hpp>
27 XERCES_CPP_NAMESPACE_BEGIN
31 class DOMNamedNodeMap;
33 class DOMUserDataHandler;
186 CDATA_SECTION_NODE = 4,
187 ENTITY_REFERENCE_NODE = 5,
189 PROCESSING_INSTRUCTION_NODE = 7,
192 DOCUMENT_TYPE_NODE = 10,
193 DOCUMENT_FRAGMENT_NODE = 11,
216 DOCUMENT_POSITION_DISCONNECTED = 0x01,
217 DOCUMENT_POSITION_PRECEDING = 0x02,
218 DOCUMENT_POSITION_FOLLOWING = 0x04,
219 DOCUMENT_POSITION_CONTAINS = 0x08,
220 DOCUMENT_POSITION_CONTAINED_BY = 0x10,
221 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
237 virtual const XMLCh * getNodeName()
const = 0;
246 virtual const XMLCh * getNodeValue()
const = 0;
252 virtual NodeType getNodeType()
const = 0;
264 virtual DOMNode *getParentNode()
const = 0;
280 virtual DOMNodeList *getChildNodes()
const = 0;
287 virtual DOMNode *getFirstChild()
const = 0;
295 virtual DOMNode *getLastChild()
const = 0;
303 virtual DOMNode *getPreviousSibling()
const = 0;
311 virtual DOMNode *getNextSibling()
const = 0;
318 virtual DOMNamedNodeMap *getAttributes()
const = 0;
355 virtual DOMNode * cloneNode(
bool deep)
const = 0;
460 virtual bool hasChildNodes()
const = 0;
480 virtual void setNodeValue(
const XMLCh *nodeValue) = 0;
505 virtual void normalize() = 0;
522 virtual bool isSupported(
const XMLCh *feature,
523 const XMLCh *version)
const = 0;
540 virtual const XMLCh * getNamespaceURI()
const = 0;
548 virtual const XMLCh * getPrefix()
const = 0;
559 virtual const XMLCh * getLocalName()
const = 0;
594 virtual void setPrefix(
const XMLCh * prefix) = 0;
602 virtual bool hasAttributes()
const = 0;
622 virtual bool isSameNode(
const DOMNode* other)
const = 0;
664 virtual bool isEqualNode(
const DOMNode* arg)
const = 0;
692 virtual void* setUserData(
const XMLCh* key,
694 DOMUserDataHandler* handler) = 0;
707 virtual void* getUserData(
const XMLCh* key)
const = 0;
726 virtual const XMLCh* getBaseURI()
const = 0;
738 virtual short compareDocumentPosition(
const DOMNode* other)
const = 0;
781 virtual const XMLCh* getTextContent()
const = 0;
794 virtual void setTextContent(
const XMLCh* textContent) = 0;
807 virtual const XMLCh* lookupPrefix(
const XMLCh* namespaceURI)
const = 0;
818 virtual bool isDefaultNamespace(
const XMLCh* namespaceURI)
const = 0;
831 virtual const XMLCh* lookupNamespaceURI(
const XMLCh* prefix)
const = 0;
848 virtual void* getFeature(
const XMLCh* feature,
const XMLCh* version)
const = 0;
869 virtual void release() = 0;
871 #if defined(XML_DOMREFCOUNT_EXPERIMENTAL)
884 virtual void decRefCount() {}
896 virtual void incRefCount() {}
904 #define GET_OWNER_DOCUMENT(ptr) \
905 ((DOMDocumentImpl*)(ptr->getOwnerDocument()))
907 #define GET_DIRECT_MM(ptr) \
908 (ptr ? ((DOMDocumentImpl*)ptr)->getMemoryManager() : XMLPlatformUtils::fgMemoryManager)
910 #define GET_INDIRECT_MM(ptr) \
911 (!ptr ? XMLPlatformUtils::fgMemoryManager : \
912 GET_OWNER_DOCUMENT(ptr) ? GET_OWNER_DOCUMENT(ptr)->getMemoryManager() : \
913 XMLPlatformUtils::fgMemoryManager)
918 #define GetDOMNodeMemoryManager GET_INDIRECT_MM(this)
920 XERCES_CPP_NAMESPACE_END
virtual ~DOMNode()
Destructor.
Definition: DOMNode.hpp:169
The DOMDocument interface represents the entire XML document.
Definition: DOMDocument.hpp:64
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition: DOMNode.hpp:139
DocumentPosition
DocumentPosition:
Definition: DOMNode.hpp:215
DOMNode()
Definition: DOMNode.hpp:146
DOMNode(const DOMNode &)
Definition: DOMNode.hpp:147
NodeType
NodeType.
Definition: DOMNode.hpp:182