org.apache.axiom.om.util

## Class AXIOMUtil

- java.lang.Object
- - org.apache.axiom.om.util.AXIOMUtil

-     public class AXIOMUtil
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AXIOMUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AXIOMUtil

          public AXIOMUtil()

  - ### Method Detail

    - #### stringToOM

          public static OMElement stringToOM(String xmlFragment)
                                      throws javax.xml.stream.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:
        `javax.xml.stream.XMLStreamException`

    - #### stringToOM

          public static OMElement stringToOM(OMFactory omFactory,
                                             String xmlFragment)
                                      throws javax.xml.stream.XMLStreamException

      Create an OMElement from an XML fragment given as a string.
      Parameters:
        `omFactory` - the factory used to build the object model
        `xmlFragment` - the well-formed XML fragment
      Returns:
        The OMElement created out of the string XML fragment.
      Throws:
        `javax.xml.stream.XMLStreamException`

Copyright © The Apache Software Foundation. All Rights Reserved.