8 #ifndef SAXON_XDMNODE_h
9 #define SAXON_XDMNODE_h
14 typedef enum eXdmNodeKind { DOCUMENT = 9, ELEMENT = 1, ATTRIBUTE = 2, TEXT = 3, COMMENT = 8, PROCESSING_INSTRUCTION = 7, NAMESPACE = 13, UNKNOWN = 0 } XDM_NODE_KIND;
261 const char * baseURI;
262 const char * nodeName;
263 const char * localName;
270 XDM_NODE_KIND nodeKind;
virtual jobject getUnderlyingValue()
Definition: XdmItem.cpp:66
XDM_TYPE getType()
Get the type of the object.
Definition: XdmNode.h:252
const char * getStringValue()
Get the string value of the item. For a node, this gets the string value of the node.
Definition: XdmNode.cpp:203
XdmNode * getParent()
Get the parent of this node.
Definition: XdmNode.cpp:270
const char * getNodeName()
Get the name of the node, as a string in the form of a EQName.
Definition: XdmNode.cpp:133
const char * toString()
The toString() method returns a simple XML serialization of the node with defaulted serialization par...
Definition: XdmNode.cpp:207
XdmValue * getTypedValue()
Get the typed value of this node, as defined in XDM.
Definition: XdmNode.cpp:173
int getAttributeCount()
Get the number of attribute node for this current node.
Definition: XdmNode.cpp:363
const char * getBaseUri()
Get the base URI of this node.
Definition: XdmNode.cpp:229
XdmNode ** getChildren(bool cache=false)
Get all the child nodes from the current parent node.
Definition: XdmNode.cpp:401
const char * getLocalName()
Get the local name of the node.
Definition: XdmNode.cpp:93
XdmItem * getHead()
Get the first item in the sequence.
Definition: XdmNode.cpp:200
bool isNode()
Determine whether the item is a node or some other type of item.
Definition: XdmNode.h:214
virtual bool isAtomic()
Determine whether the item is an atomic value or some other type of item.
Definition: XdmNode.cpp:15
jobject getUnderlyingValue()
Get the underlying JNI Java object for the XdmNode.
Definition: XdmNode.h:202
int getChildCount()
Get the count of child nodes from thie current node.
Definition: XdmNode.cpp:382
XdmNode * getChild(int i, bool cache=false)
Get the ith child nodes from the current parent node.
Definition: XdmNode.cpp:441
XdmNode(jobject)
XdmNode constructor created as a wrapper around an existing Saxon Java object.
Definition: XdmNode.cpp:9
XDM_NODE_KIND getNodeKind()
Get the kind of node.
Definition: XdmNode.cpp:19
XdmNode ** getAttributeNodes(bool cache=false)
Get array of attribute nodes of this element.
Definition: XdmNode.cpp:328
virtual ~XdmNode()
Destructor.
Definition: XdmNode.cpp:56
const char * getAttributeValue(const char *name)
Get the string value of a named attribute (in no namespace) of this element.
Definition: XdmNode.cpp:295
Definition: XdmValue.h:50