public class AXIOMUtil extends Object
| Constructor and Description |
|---|
AXIOMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static OMElement |
stringToOM(OMFactory omFactory,
String xmlFragment)
Create an OMElement from an XML fragment given as a string.
|
static OMElement |
stringToOM(String xmlFragment)
Create an OMElement from an XML fragment given as a string.
|
public static OMElement stringToOM(String xmlFragment) throws javax.xml.stream.XMLStreamException
xmlFragment - the well-formed XML fragmentjavax.xml.stream.XMLStreamExceptionpublic static OMElement stringToOM(OMFactory omFactory, String xmlFragment) throws javax.xml.stream.XMLStreamException
omFactory - the factory used to build the object modelxmlFragment - the well-formed XML fragmentjavax.xml.stream.XMLStreamExceptionCopyright © The Apache Software Foundation. All Rights Reserved.