private String parseXmlElement ( Element element ) { if ( element . getFirstChild ( ) instanceof Text ) { Text text = ( Text ) element . getFirstChild ( ) ; return text . getData ( ) ; } return toXml ( element ) ; }
Returns the XML Element as a String .