CtmXmlElement Class
The following table describes the CtmXmlElement API class that navigates the XML document and retrieves data from the XML document for specific XML elements:
|
Method |
Description |
|---|---|
|
getAllDecnedElementByName(String elementName):List<CtmXmlElement> |
Returns a list of all elements according to element name. |
|
getAllDirectChildsElement():List<CtmXmlElement> |
Returns a list of all childs elements. |
|
getAttribute(String attributeName):String |
Returns an attribute by name. |
|
getCData():String |
Returns the Cdata of the xml element. |
|
getDirectChildsElementAttrByName(String elementName, String attributeName):ArrayList<String> |
Returns a specific attribute from direct child elements. |
|
getDirectChildsElementbyName(String elementName):List<CtmXmlElement> |
Returns direct child elements by element name. |
|
getFirstChildElementByAttrValue(String elementName, String attributeName, String attributeValue):CtmXmlElement |
Returns the first child element that has an attribute with a specific value. |
|
getFirstChildElementByName(String elementName):CtmXmlElement |
Returns the first child element that has a specific name. |
|
getParent():CtmXmlElement |
Returns the parent XML element of the current XML element. |
|
getTagName():String |
Returns the tag name of the current XML element. |
|
getText():String |
Returns the text of the current XML element. |
|
getValueOfFirstChildElementByName(String...):String |
Returns the value of the first child element. |
|
hasAttribute(String attributeName):boolean |
Checks whether an attribute exists in the XML element. |
|
hasAttributeWithValue(String attributeName, String attributeValue):boolean |
Checks whether an attribute with a specific value exists in the XML element. |