Code example for Node

Methods: getNodeName

0
 
    public String getName() {
      if (currentNode == null) {
        return ""; 
      } 
      return currentNode.getNodeName();
    } 
 
    Node getAttributeAt(int index) {
      if (currentNode == null) {
        throw new IndexOutOfBoundsException(String.valueOf(index));
      } 
      NamedNodeMap map = currentNode.getAttributes();
      if (index >= map.getLength()) {
        throw new IndexOutOfBoundsException(String.valueOf(index));
      } 
      return map.item(index);
    } 
 
    public String getAttribute(String namespace, String name) {
      if (currentNode == null) {