|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.util.XMLUtils
Some static XML DOM util methods
| Constructor Summary | |
XMLUtils()
|
|
| Method Summary | |
static java.util.Properties |
copyAttributeProperties(org.w3c.dom.Node node)
Take a node and copy it's attributes into a property object. |
static org.w3c.dom.Document |
parse(java.io.File file)
Parse a document from a file. |
static org.w3c.dom.Document |
parse(java.io.InputStream in)
Parse a document from an input stream. |
static org.w3c.dom.Document |
parseString(java.lang.String string)
Parse a document from a String. |
static void |
transform(java.io.InputStream xslSource,
java.io.InputStream xmlSource,
java.io.OutputStream out)
Apply a transformation on an input stream XML source. |
| 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 org.w3c.dom.Document parse(java.io.InputStream in)
throws XMLException
in - InputStream to parse
XMLException - If any errors occur while parsing
public static org.w3c.dom.Document parse(java.io.File file)
throws XMLException
file - File to parse
XMLException - If any errors occur while parsing
public static org.w3c.dom.Document parseString(java.lang.String string)
throws XMLException
string - String XML
XMLException - If any errors occur while parsingpublic static java.util.Properties copyAttributeProperties(org.w3c.dom.Node node)
node - Node to copy attributes from
public static void transform(java.io.InputStream xslSource,
java.io.InputStream xmlSource,
java.io.OutputStream out)
throws XMLException
xslSource - XSL source streamxmlSource - XML source streamout - Transformation output stream
XMLException - On transformation or I/O errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||