public class XMLUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLUtil.ElementData |
static class |
XMLUtil.XMLSplitHandler |
| Constructor and Description |
|---|
XMLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getChild(org.xml.sax.InputSource in,
int index) |
static XMLUtil.ElementData |
getMainElementData(org.xml.sax.InputSource is)
Returns the info (uri, localName, qName & attributes) of the main element
of the XML document found in the provided InputSource
|
static org.xml.sax.InputSource |
newInputSource(java.lang.String xml) |
static void |
printXML(java.io.OutputStream os,
java.lang.String xml) |
static java.lang.String |
rebuildElement(java.lang.String qName,
org.xml.sax.Attributes attributes) |
public static java.lang.String getChild(org.xml.sax.InputSource in,
int index)
throws java.io.IOException,
javax.xml.transform.TransformerException
java.io.IOExceptionjavax.xml.transform.TransformerExceptionpublic static org.xml.sax.InputSource newInputSource(java.lang.String xml)
public static java.lang.String rebuildElement(java.lang.String qName,
org.xml.sax.Attributes attributes)
public static XMLUtil.ElementData getMainElementData(org.xml.sax.InputSource is) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
is - the InputSource of the XMLjavax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic static void printXML(java.io.OutputStream os,
java.lang.String xml)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException