#include <xmltooling/util/XMLHelper.h>
Static Public Member Functions | |
static bool | hasXSIType (const xercesc::DOMElement *e) |
Checks if the given element has an xsi:type defined for it. | |
static QName * | getXSIType (const xercesc::DOMElement *e) |
Gets the XSI type for a given element if it has one. | |
static xercesc::DOMAttr * | getIdAttribute (const xercesc::DOMElement *domElement) |
Gets the ID attribute of a DOM element. | |
static const XMLObject * | getXMLObjectById (const XMLObject &tree, const XMLCh *id) |
Attempts to locate an XMLObject from this point downward in the tree whose XML ID matches the supplied value. | |
static XMLObject * | getXMLObjectById (XMLObject &tree, const XMLCh *id) |
Attempts to locate an XMLObject from this point downward in the tree whose XML ID matches the supplied value. | |
static QName * | getNodeQName (const xercesc::DOMNode *domNode) |
Gets the QName for the given DOM node. | |
static QName * | getAttributeValueAsQName (const xercesc::DOMAttr *attribute) |
static QName * | getNodeValueAsQName (const xercesc::DOMNode *domNode) |
Constructs a QName from a node's value. | |
static xercesc::DOMElement * | appendChildElement (xercesc::DOMElement *parentElement, xercesc::DOMElement *childElement) |
Appends the child Element to the parent Element, importing the child Element into the parent's Document if needed. | |
static bool | isNodeNamed (const xercesc::DOMNode *n, const XMLCh *ns, const XMLCh *local) |
Checks the qualified name of a node. | |
static xercesc::DOMElement * | getFirstChildElement (const xercesc::DOMNode *n, const XMLCh *localName=NULL) |
Returns the first matching child element of the node if any. | |
static xercesc::DOMElement * | getLastChildElement (const xercesc::DOMNode *n, const XMLCh *localName=NULL) |
Returns the last matching child element of the node if any. | |
static xercesc::DOMElement * | getNextSiblingElement (const xercesc::DOMNode *n, const XMLCh *localName=NULL) |
Returns the next matching sibling element of the node if any. | |
static xercesc::DOMElement * | getPreviousSiblingElement (const xercesc::DOMNode *n, const XMLCh *localName=NULL) |
Returns the previous matching sibling element of the node if any. | |
static xercesc::DOMElement * | getFirstChildElement (const xercesc::DOMNode *n, const XMLCh *ns, const XMLCh *localName) |
Returns the first matching child element of the node if any. | |
static xercesc::DOMElement * | getLastChildElement (const xercesc::DOMNode *n, const XMLCh *ns, const XMLCh *localName) |
Returns the last matching child element of the node if any. | |
static xercesc::DOMElement * | getNextSiblingElement (const xercesc::DOMNode *n, const XMLCh *ns, const XMLCh *localName) |
Returns the next matching sibling element of the node if any. | |
static xercesc::DOMElement * | getPreviousSiblingElement (const xercesc::DOMNode *n, const XMLCh *ns, const XMLCh *localName) |
Returns the previous matching sibling element of the node if any. | |
static const XMLCh * | getTextContent (const xercesc::DOMElement *e) |
Returns the content of the first Text node found in the element, if any. | |
static void | serialize (const xercesc::DOMNode *n, std::string &buf, bool pretty=false) |
Serializes the DOM node provided into a buffer using UTF-8 encoding and the default XML serializer available. | |
static std::ostream & | serialize (const xercesc::DOMNode *n, std::ostream &out, bool pretty=false) |
Serializes the DOM node provided to a stream using UTF-8 encoding and the default XML serializer available. |
|
Appends the child Element to the parent Element, importing the child Element into the parent's Document if needed.
|
|
|
|
Returns the first matching child element of the node if any.
|
|
Returns the first matching child element of the node if any.
|
|
Gets the ID attribute of a DOM element.
|
|
Returns the last matching child element of the node if any.
|
|
Returns the last matching child element of the node if any.
|
|
Returns the next matching sibling element of the node if any.
|
|
Returns the next matching sibling element of the node if any.
|
|
Gets the QName for the given DOM node.
|
|
Constructs a QName from a node's value.
|
|
Returns the previous matching sibling element of the node if any.
|
|
Returns the previous matching sibling element of the node if any.
|
|
Returns the content of the first Text node found in the element, if any. This is roughly similar to the DOM getTextContent function, but only examples the immediate children of the element.
|
|
Attempts to locate an XMLObject from this point downward in the tree whose XML ID matches the supplied value.
|
|
Attempts to locate an XMLObject from this point downward in the tree whose XML ID matches the supplied value.
|
|
Gets the XSI type for a given element if it has one.
|
|
Checks if the given element has an xsi:type defined for it.
|
|
Checks the qualified name of a node.
|
|
Serializes the DOM node provided to a stream using UTF-8 encoding and the default XML serializer available. No manipulation or formatting is applied.
|
|
Serializes the DOM node provided into a buffer using UTF-8 encoding and the default XML serializer available. No manipulation or formatting is applied.
|