public class XML
extends java.lang.Object
Constructor and Description |
---|
XML() |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
fromInputSource(org.xml.sax.InputSource source)
Parse the input source as DOM.
|
static org.w3c.dom.Document |
fromInputStream(java.io.InputStream in,
java.lang.String encoding)
Parse an InputStream as DOM.
|
static org.w3c.dom.Document |
fromString(java.lang.String xml)
Parse an XML string as DOM.
|
static akka.util.ByteString |
toBytes(org.w3c.dom.Document document)
Convert the document to bytes.
|
public static org.w3c.dom.Document fromString(java.lang.String xml)
public static org.w3c.dom.Document fromInputStream(java.io.InputStream in, java.lang.String encoding)
public static org.w3c.dom.Document fromInputSource(org.xml.sax.InputSource source)
source
- The source to parse.public static akka.util.ByteString toBytes(org.w3c.dom.Document document)
document
- The document to convert.