|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.customstep.util.xml.XmlUtils
public abstract class XmlUtils
XML Utilities.
Constructor Summary | |
---|---|
XmlUtils()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
createDomDocument()
Create an empty XML Document. |
static org.w3c.dom.Document |
createDomDocument(java.io.InputStream is)
Create an XML Document from an InputStream. |
static org.w3c.dom.Document |
createDomDocument(java.lang.String xml)
Create an XML Document from an XML string. |
static boolean |
isWellFormed(java.io.File file)
Indicates if the specified file is a well formed XML document. |
static boolean |
isWellFormed(java.lang.String xml)
Indicates if the specified XML string is well formed. |
static java.lang.String |
stripInvalidXMLCharacters(java.lang.String text)
Strip invalid XML characters from a string. |
static java.lang.String |
toXml(org.w3c.dom.Node node)
Convert a DOM node to an XML string. |
static java.lang.String |
toXml(org.w3c.dom.Node node,
int indent)
Convert a DOM node to an XML string. |
static void |
writeXml(org.w3c.dom.Document document,
java.io.File file)
Write a DOM document to a file. |
static void |
writeXml(org.w3c.dom.Document document,
java.io.OutputStream os)
Write a DOM document to an OutputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlUtils()
Method Detail |
---|
public static boolean isWellFormed(java.io.File file) throws java.io.IOException
file
- The file containing the document.
java.io.IOException
public static boolean isWellFormed(java.lang.String xml) throws java.io.IOException
xml
- The XML string.
java.io.IOException
public static org.w3c.dom.Document createDomDocument()
public static org.w3c.dom.Document createDomDocument(java.lang.String xml) throws org.xml.sax.SAXException, java.io.IOException
xml
-
java.io.IOException
org.xml.sax.SAXException
public static org.w3c.dom.Document createDomDocument(java.io.InputStream is) throws java.io.IOException
is
-
java.io.IOException
public static void writeXml(org.w3c.dom.Document document, java.io.File file) throws java.io.IOException
document
- file
-
java.io.IOException
public static void writeXml(org.w3c.dom.Document document, java.io.OutputStream os) throws java.io.IOException
document
- os
-
java.io.IOException
public static java.lang.String toXml(org.w3c.dom.Node node, int indent)
node
- indent
-
public static java.lang.String toXml(org.w3c.dom.Node node)
node
-
public static java.lang.String stripInvalidXMLCharacters(java.lang.String text)
text
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |