\r
static const XMLCh type[]={chLatin_t, chLatin_y, chLatin_p, chLatin_e, chNull };\r
\r
-bool XMLHelper::hasXSIType(DOMElement* e)\r
+bool XMLHelper::hasXSIType(const DOMElement* e)\r
{\r
if (e) {\r
if (e->hasAttributeNS(XMLConstants::XSI_NS, type)) {\r
return false;\r
}\r
\r
-QName* XMLHelper::getXSIType(DOMElement* e)\r
+QName* XMLHelper::getXSIType(const DOMElement* e)\r
{\r
DOMAttr* attribute = e->getAttributeNodeNS(XMLConstants::XSI_NS, type);\r
if (attribute) {\r
return NULL;\r
}\r
\r
-DOMAttr* XMLHelper::getIdAttribute(DOMElement* domElement)\r
+DOMAttr* XMLHelper::getIdAttribute(const DOMElement* domElement)\r
{\r
if(!domElement->hasAttributes()) {\r
return NULL;\r
return NULL;\r
}\r
\r
-QName* XMLHelper::getNodeQName(DOMNode* domNode)\r
+QName* XMLHelper::getNodeQName(const DOMNode* domNode)\r
{\r
if (domNode)\r
return new QName(domNode->getNamespaceURI(), domNode->getLocalName(), domNode->getPrefix());\r
return NULL; \r
}\r
\r
-QName* XMLHelper::getAttributeValueAsQName(DOMAttr* attribute)\r
+QName* XMLHelper::getAttributeValueAsQName(const DOMAttr* attribute)\r
{\r
if (!attribute)\r
return NULL;\r
* @param e the DOM element\r
* @return true if there is a type, false if not\r
*/\r
- static bool hasXSIType(DOMElement* e);\r
+ static bool hasXSIType(const DOMElement* e);\r
\r
/**\r
* Gets the XSI type for a given element if it has one.\r
* @param e the element\r
* @return the type or null\r
*/\r
- static QName* getXSIType(DOMElement* e);\r
+ static QName* getXSIType(const DOMElement* e);\r
\r
/**\r
* Gets the ID attribute of a DOM element.\r
* @param domElement the DOM element\r
* @return the ID attribute or null if there isn't one\r
*/\r
- static DOMAttr* getIdAttribute(DOMElement* domElement);\r
+ static DOMAttr* getIdAttribute(const DOMElement* domElement);\r
\r
/**\r
* Gets the QName for the given DOM node.\r
* @param domNode the DOM node\r
* @return the QName for the element or null if the element was null\r
*/\r
- static QName* getNodeQName(DOMNode* domNode);\r
+ static QName* getNodeQName(const DOMNode* domNode);\r
\r
/**\r
* Constructs a QName from an attributes value.\r
* @param attribute the attribute with a QName value\r
* @return a QName from an attributes value, or null if the given attribute is null\r
*/\r
- static QName* getAttributeValueAsQName(DOMAttr* attribute);\r
+ static QName* getAttributeValueAsQName(const DOMAttr* attribute);\r
\r
/**\r
* Appends the child Element to the parent Element,\r