org.apache.axiom.om.util
Class AXIOMUtil
java.lang.Object
org.apache.axiom.om.util.AXIOMUtil
- Direct Known Subclasses:
- AXIOMUtil
public class AXIOMUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AXIOMUtil
public AXIOMUtil()
stringToOM
public static OMElement stringToOM(String xmlFragment)
throws XMLStreamException
- Create an OMElement from an XML fragment given as a string.
- Parameters:
xmlFragment
- the well-formed XML fragment
- Returns:
- The OMElement created out of the string XML fragment.
- Throws:
XMLStreamException
stringToOM
public static OMElement stringToOM(OMFactory omFactory,
String xmlFragment)
throws XMLStreamException
- Create an OMElement from an XML fragment given as a string.
- Parameters:
omFactory
- the factory used to build the object modelxmlFragment
- the well-formed XML fragment
- Returns:
- The OMElement created out of the string XML fragment.
- Throws:
XMLStreamException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.