public final class XmlHelper extends Object
| Constructor and Description |
|---|
XmlHelper() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
documentToPrettyInputStream(Document document)
To output a DOM as a stream.
|
static Document |
inputStreamToDocument(InputStream is)
To parse an input stream to DOM
This implementation attempts to preserve the xml structure as-is with whitespace etc
|
public static InputStream documentToPrettyInputStream(Document document) throws Exception
Exceptionpublic static Document inputStreamToDocument(InputStream is) throws Exception
ExceptionCopyright © 2011–2015 Red Hat. All rights reserved.