private String getStringValue ( XmlNodeArray nodes ) { StringBuilder stringBuilder = new StringBuilder ( ) ; // If all we have is just a bunch of nodes and the user wants a string // we'll use a parent element called <string> to have a valid XML document stringBuilder . append ( "<string>" ) ; for ( XmlNode node : nodes ) { stringBuilder . append ( getStringValue ( node ) ) ; } stringBuilder . append ( "</string>" ) ; return stringBuilder . toString ( ) ; }
Returns the string value for the given node array