|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.common.XMLUtil
public class XMLUtil
Utility class for loading XML documents
Constructor Summary | |
---|---|
XMLUtil()
|
Method Summary | |
---|---|
protected static Document |
_loadDocument(InputSource inputSource)
loads an xml document from the xslt input source |
static Map |
getMapFromElementAttributes(Element element)
Constructs a Map from the attributes on the given element. |
static Document |
loadDocumentFromReader(Reader reader)
loads an xml document by the suplied java.io.Reader |
static Document |
loadDocumentFromXML(String xml)
Load XML (String format) into a Document |
static String |
serialize(Element elem)
Serialize the element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtil()
Method Detail |
---|
public static Document loadDocumentFromXML(String xml) throws ParserConfigurationException, FactoryConfigurationError, SAXException, IOException
xml
- String in XML format
ParserConfigurationException
FactoryConfigurationError
SAXException
IOException
public static Document loadDocumentFromReader(Reader reader) throws ParserConfigurationException, FactoryConfigurationError, SAXException, IOException
reader
- is an open Reader to an xml document.
ParserConfigurationException
FactoryConfigurationError
SAXException
IOException
protected static Document _loadDocument(InputSource inputSource) throws ParserConfigurationException, FactoryConfigurationError, SAXException, IOException
inputSource
- is the xslt input source
ParserConfigurationException
FactoryConfigurationError
SAXException
IOException
public static String serialize(Element elem) throws IOException
elem
- null or Element
IOException
public static Map getMapFromElementAttributes(Element element)
Map
from the attributes on the given element. namespaces
are ignored.
element
- the element to get the attributes from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |