Code example for XmlPullParser

Methods: nextText

0
     * @return the element value from node 
     * @throws IOException  
     * @throws XmlPullParserException  
     */ 
    public static String getElementValueFromNode(XmlPullParser node) throws XmlPullParserException, IOException {
    	return node.nextText();
    } 
 
    /** 
     * Gets the element value as long from node. 
     *  
     * @param node the node 
     * @param valueName the value name 
     *  
     * @return the element value as long from node 
     * @throws XmlPullParserException  
     */ 
    public static Long getElementValueAsLongFromNode(XmlPullParser node) throws IOException, XmlPullParserException {
    	String value = node.nextText();
    	if (isNullOrEmpty(value)) {
    		return null;