22 #if !defined(XERCESC_INCLUDE_GUARD_DOMNODE_HPP)
23 #define XERCESC_INCLUDE_GUARD_DOMNODE_HPP
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;
287 virtual DOMNode *getFirstChild()
const = 0;
295 virtual DOMNode *getLastChild()
const = 0;
303 virtual DOMNode *getPreviousSibling()
const = 0;
311 virtual DOMNode *getNextSibling()
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,
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)
virtual ~DOMNode()
Destructor.
Definition: DOMNode.hpp:169
When associating an object to a key on a node using setUserData the application can provide a handler...
Definition: DOMUserDataHandler.hpp:40
The DOMNodeList interface provides the abstraction of an ordered collection of nodes.
Definition: DOMNodeList.hpp:45
DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...
Definition: DOMNamedNodeMap.hpp:45
The DOMDocument interface represents the entire XML document.
Definition: DOMDocument.hpp:64
#define CDOM_EXPORT
Definition: XercesDefs.hpp:166
DocumentPosition
DocumentPosition:
Definition: DOMNode.hpp:215
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
DOMNode(const DOMNode &)
Definition: DOMNode.hpp:147
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
DOMNode()
Definition: DOMNode.hpp:146
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition: DOMNode.hpp:139
NodeType
NodeType.
Definition: DOMNode.hpp:182