Package helma.objectmodel.dom
Class XmlUtil
- java.lang.Object
-
- helma.objectmodel.dom.XmlUtil
-
public class XmlUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.w3c.dom.Element
getFirstElement(org.w3c.dom.Document document)
get first "real" element (ie not the document-rootelement, but the next onestatic java.lang.String
getTextContent(org.w3c.dom.Node element)
return the text content of an elementstatic org.w3c.dom.Document
newDocument()
static org.w3c.dom.Document
parse(java.io.InputStream in)
static org.w3c.dom.Document
parse(org.xml.sax.InputSource in)
-
-
-
Method Detail
-
newDocument
public static org.w3c.dom.Document newDocument()
- Returns:
- ...
-
parse
public static org.w3c.dom.Document parse(java.io.InputStream in) throws java.lang.RuntimeException
- Parameters:
in
- ...- Returns:
- ...
- Throws:
java.lang.RuntimeException
- ...
-
parse
public static org.w3c.dom.Document parse(org.xml.sax.InputSource in) throws java.lang.RuntimeException
- Parameters:
in
- ...- Returns:
- ...
- Throws:
java.lang.RuntimeException
- ...
-
getFirstElement
public static org.w3c.dom.Element getFirstElement(org.w3c.dom.Document document)
get first "real" element (ie not the document-rootelement, but the next one
-
getTextContent
public static java.lang.String getTextContent(org.w3c.dom.Node element)
return the text content of an element
-
-