Code example for Element

Methods: getChildNodes

0
		this.decodeStrings = decodeStrings;
		this.encodeStrings = encodeStrings;
	} 
 
	public Object deserialize(Element content) throws XMLRPCException {
		String text = XMLUtil.getOnlyTextContent(content.getChildNodes());
		if(decodeStrings) {
			text = text.replaceAll("&lt;", "<").replaceAll("&amp;", "&");
		} 
		return text;
	} 
 
	public XmlElement serialize(Object object) {
		String content = object.toString();
		if(encodeStrings) {
			content = content.replaceAll("&", "&amp;").replaceAll("<", "&lt;");
		} 
		return XMLUtil.makeXmlTag(SerializerHandler.TYPE_STRING, content);
	} 
 
Connect your IDE to all the code out there  Get Codota for Java