Code example for Node

Methods: getTextContent

0
 
    public String getText() {
      if (currentNode == null) {
        return ""; 
      } 
      return currentNode.getTextContent();
    } 
 
    public int getLineNumber() { 
      // TODO(msama): The current implementation is 
      //   unable to return line numbers. 
      return -1; 
    } 
 
    public int getEventType() 
        throws XmlPullParserException { 
      return mEventType;
    } 
 
    /*package*/ 
    public boolean isWhitespace(String text)