private String getContent(Element element) {
		StringBuilder paramValue = new StringBuilder();
		NodeList childNodes = element.getChildNodes();
		for (int j = 0; j < childNodes.getLength(); j++) {
			Node currentNode = childNodes.item(j);
			if (currentNode != null && currentNode.getNodeType() == Node.TEXT_NODE) {
				String val = currentNode.getNodeValue();
				if (val != null) {
					paramValue.append(val.trim());
				}
			}
		}
		return paramValue.toString().trim();
	}
private String getContent ( Element element ) { StringBuilder paramValue = new StringBuilder ( ) ; NodeList childNodes = element . getChildNodes ( ) ; for ( int j = 0 ; j < childNodes . getLength ( ) ; j ++ ) { Node currentNode = childNodes . item ( j ) ; if ( currentNode != null && currentNode . getNodeType ( ) == Node . TEXT_NODE ) { String val = currentNode . getNodeValue ( ) ; if ( val != null ) { paramValue . append ( val . trim ( ) ) ; } } } return paramValue . toString ( ) . trim ( ) ; }
This method will return the content of this particular
<code>element</code>. For example,
<p/>

<pre>
<result>something</result>
</pre>

When the {@link org.w3c.dom.Element} <code>&lt;result&gt;</code> is
passed in as argument (<code>element</code> to this method, it returns
the content of it, namely, <code>something</code> in the example above.

@return