private String getNodeValue ( Node node ) { if ( node . getNodeType ( ) == Node . ELEMENT_NODE && node . getFirstChild ( ) != null ) { return node . getFirstChild ( ) . getNodeValue ( ) ; } else { return node . getNodeValue ( ) ; } }
Resolves an XML node s value