Code example for Element

Methods: getChildNodes

0
	} 
 
	public static final String getXmlElementString(Element e)
	{ 
		if (e == null) return null;
		NodeList nl = e.getChildNodes();
		if (nl.getLength() > 0) { return nl.item(0).getNodeValue(); }
		return null; 
	} 
 
	public static final String getXmlAttributeString(Element parent, String name)
	{ 
		return parent.getAttribute(name);
	} 
 
	public static final Time getXmlElementTime(Element parent, String name)
	{ 
		String value = getXmlElementString(parent, name);
		if (value == null || "".equals(value)) return null;
		Time t = new Time();
		t.switchTimezone("UTC");