public class XML extends Object
| Constructor and Description |
|---|
XML() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendChildAcrossDocuments(Element parent,
Node child)
Cross-document appendChild.
|
static Document |
getXml(InputStream in)
Parse an InputStream as DOM, with "utf-8" as default encoding.
|
static Document |
getXml(InputStream in,
String encoding)
Parse an InputStream as DOM.
|
static Document |
getXml(String xml)
Parse an XML string as DOM, with "utf-8" as default encoding.
|
static Document |
getXml(String xml,
String encoding)
Parse an XML string as DOM.
|
static String |
toString(Node xml)
Serialize an XML node as a string.
|
public static Document getXml(String xml)
public static Document getXml(InputStream in)
public static Document getXml(InputStream in, String encoding)
public static String toString(Node xml)
xml - Copyright © 2012–2016 The DAISY Consortium. All rights reserved.