Changeset 4:da25cd718638 in rrlib_xml-java


Ignore:
Timestamp:
06.03.2014 23:52:55 (7 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Added getParent() method to XMLNode class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLNode.java

    r2 r4  
    421421 
    422422    /** 
     423     * @return Parent node 
     424     */ 
     425    public XMLNode getParent() { 
     426        if (this.node.getParentNode() instanceof Element) { 
     427            return new XMLNode(doc, (Element)this.node.getParentNode()); 
     428        } 
     429        return null; 
     430    } 
     431 
     432    /** 
    423433     * Set an XML attribute of this node 
    424434     * 
Note: See TracChangeset for help on using the changeset viewer.