Modifier and Type | Method and Description |
---|---|
XMLTag |
XMLTag.delete()
Delete current tag and its childs.
|
XMLTag |
XMLTag.deleteAttribute(String name)
Delete an attribute of the current node.
|
String |
XMLTag.findAttribute(String name,
String relativeXpath,
Object... arguments)
Returns the attribute value of the node pointed by given XPath expression or null if the attribute does not exist
|
String |
XMLDoc.findAttribute(String name,
String relativeXpath,
Object... arguments) |
String |
XMLTag.getAttribute(String name)
returns the attribute value of the current node
|
String |
XMLTag.getAttribute(String name,
String relativeXpath,
Object... arguments)
Returns the attribute value of the node pointed by given XPath expression
|
String |
XMLTag.getCDATA(String relativeXpath,
Object... arguments)
Get the CDATA of a selected node
|
String |
XMLTag.getCDATAorText(String relativeXpath,
Object... arguments)
Get the text of a sepcific node
|
String |
XMLDoc.getCDATAorText(String relativeXpath,
Object... arguments) |
String |
XMLTag.getText(String relativeXpath,
Object... arguments)
Get the text of a sepcific node
|
String |
XMLTag.getTextOrCDATA(String relativeXpath,
Object... arguments)
Get the text of a sepcific node
|
String |
XMLDoc.getTextOrCDATA(String relativeXpath,
Object... arguments) |
XMLTag |
XMLTag.gotoChild()
Go to the only child element of the curent node.
|
XMLTag |
XMLTag.gotoChild(int i)
Go to the Nth child of the curent node.
|
XMLTag |
XMLTag.gotoChild(String nodeName)
Go to the child found with given node name
|
XMLTag |
XMLTag.gotoFirstChild()
Go to the first child element of the curent node.
|
XMLTag |
XMLDoc.gotoFirstChild() |
XMLTag |
XMLTag.gotoFirstChild(String name)
Go to the first child occurance found having given name
|
XMLTag |
XMLDoc.gotoFirstChild(String name) |
XMLTag |
XMLTag.gotoLastChild()
Go to the lastest child element of the curent node.
|
XMLTag |
XMLDoc.gotoLastChild() |
XMLTag |
XMLTag.gotoLastChild(String name)
Go to the last child occurance found having given name
|
XMLTag |
XMLDoc.gotoLastChild(String name) |
XMLTag |
XMLTag.gotoTag(String relativeXpath,
Object... arguments)
Go to a specific node
|
boolean |
XMLTag.hasAttribute(String name,
String relativeXpath,
Object... arguments)
Check if targeted tag has an attribute of given name
|
XMLTag |
XMLTag.setAttribute(String name,
String value)
Sets the new value on an existign attribute, and remains on the current tag.
|
XMLTag |
XMLDoc.setAttribute(String name,
String value) |
XMLTag |
XMLTag.setAttribute(String name,
String value,
String relativeXpath,
Object... arguments)
Sets the new value on a targetted node's attribute, and remains on the current tag.
|
XMLTag |
XMLDoc.setAttribute(String name,
String value,
String relativeXpath,
Object... arguments) |
XMLTag |
XMLTag.setAttributeIfExist(String name,
String value,
String relativeXpath,
Object... arguments)
Sets the new value on a targetted node's attribute, and remains on the current tag.
|
XMLTag |
XMLDoc.setAttributeIfExist(String name,
String value,
String relativeXpath,
Object... arguments) |
XMLTag |
XMLTag.setCDATA(String data,
String relativeXpath,
Object... arguments)
Set the cdata in the targetted node.
|
XMLTag |
XMLDoc.setCDATA(String data,
String relativeXpath,
Object... arguments) |
XMLTag |
XMLTag.setCDATAIfExist(String data,
String relativeXpath,
Object... arguments)
Set the cdata in the targetted node.
|
XMLTag |
XMLDoc.setCDATAIfExist(String data,
String relativeXpath,
Object... arguments) |
XMLTag |
XMLTag.setText(String text,
String relativeXpath,
Object... arguments)
Set the text in the targetted node.
|
XMLTag |
XMLDoc.setText(String text,
String relativeXpath,
Object... arguments) |
XMLTag |
XMLTag.setTextIfExist(String text,
String relativeXpath,
Object... arguments)
Set the text in the targetted node.
|
XMLTag |
XMLDoc.setTextIfExist(String text,
String relativeXpath,
Object... arguments) |
Copyright © 2008–2016 Mathieu Carbou. All rights reserved.