
Package ca.uhn.fhir.util
Class XmlUtil
- java.lang.Object
-
- ca.uhn.fhir.util.XmlUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlUtil.MyEscaper
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XMLEventReader
createXmlReader(Reader reader)
static XMLStreamWriter
createXmlStreamWriter(Writer theWriter)
static XMLEventWriter
createXmlWriter(Writer theWriter)
static String
encode(List<XMLEvent> theEvents)
Encode a set of StAX events into a Stringstatic String
encodeDocument(Node theElement)
static String
encodeDocument(Node theElement, boolean theIndent)
static List<XMLEvent>
parse(String theValue)
Parses an XML string into a set of StAX eventsstatic Document
parseDocument(String theInput)
-
-
-
Method Detail
-
createXmlReader
public static XMLEventReader createXmlReader(Reader reader) throws FactoryConfigurationError, XMLStreamException
-
createXmlStreamWriter
public static XMLStreamWriter createXmlStreamWriter(Writer theWriter) throws FactoryConfigurationError, XMLStreamException
-
createXmlWriter
public static XMLEventWriter createXmlWriter(Writer theWriter) throws FactoryConfigurationError, XMLStreamException
-
encode
public static String encode(List<XMLEvent> theEvents)
Encode a set of StAX events into a String
-
parse
public static List<XMLEvent> parse(String theValue)
Parses an XML string into a set of StAX events
-
parseDocument
public static Document parseDocument(String theInput) throws IOException, SAXException
- Throws:
IOException
SAXException
-
encodeDocument
public static String encodeDocument(Node theElement) throws TransformerException
- Throws:
TransformerException
-
encodeDocument
public static String encodeDocument(Node theElement, boolean theIndent) throws TransformerException
- Throws:
TransformerException
-
-