|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.formats.xml.XMLLib
public class XMLLib
Useful XMLish functions.
RDC: added a bunch of DOM functions.
| Constructor Summary | |
|---|---|
XMLLib()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
createDocument(org.w3c.dom.Node document)
Creates a new document with a copy of the given element as the document element. |
static java.lang.String |
escapeString(java.lang.String original)
|
static boolean |
isAnscestor(org.w3c.dom.Node parentToCheck,
org.w3c.dom.Node child)
|
static void |
logNode(org.w3c.dom.Node node)
Writes the node out to the log. |
static org.w3c.dom.Document |
open(java.io.File file)
|
static org.w3c.dom.Document |
open(java.io.InputStream instr)
|
static org.w3c.dom.Document |
open(java.lang.String filename)
|
static java.lang.String |
unescapeString(java.lang.String original)
|
static void |
write(org.w3c.dom.Node document,
java.io.File file)
Writes document as the document element of a new document. |
static void |
write(org.w3c.dom.Node document,
java.lang.String filename)
Writes document as the document element of a new document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLLib()
| Method Detail |
|---|
public static java.lang.String escapeString(java.lang.String original)
public static java.lang.String unescapeString(java.lang.String original)
public static org.w3c.dom.Document open(java.lang.String filename)
throws java.lang.Exception
java.lang.Exception
public static org.w3c.dom.Document open(java.io.File file)
throws java.lang.Exception
java.lang.Exception
public static org.w3c.dom.Document open(java.io.InputStream instr)
throws java.lang.Exception
java.lang.Exception
public static void write(org.w3c.dom.Node document,
java.lang.String filename)
throws java.lang.Exception
java.lang.Exception
public static void write(org.w3c.dom.Node document,
java.io.File file)
throws java.lang.Exception
java.lang.Exceptionpublic static org.w3c.dom.Document createDocument(org.w3c.dom.Node document)
public static void logNode(org.w3c.dom.Node node)
throws java.lang.Exception
java.lang.Exception
public static boolean isAnscestor(org.w3c.dom.Node parentToCheck,
org.w3c.dom.Node child)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||