public class OMUtils
extends java.lang.Object
Constructor and Description |
---|
OMUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.axiom.om.OMElement |
getFirstChildWithName(org.apache.axiom.om.OMElement parent,
java.lang.String name) |
static javax.xml.namespace.QName |
getTextAsQName(org.apache.axiom.om.OMElement elmt)
Axiom is supposed to handle this properly however this method is buggy and doesn't work (whereas setting a QName as text
works).
|
static org.w3c.dom.Element |
toDOM(org.apache.axiom.om.OMElement element) |
static org.w3c.dom.Element |
toDOM(org.apache.axiom.om.OMElement element,
org.w3c.dom.Document doc) |
static org.w3c.dom.Element |
toDOM(org.apache.axiom.om.OMElement element,
org.w3c.dom.Document doc,
boolean deepNS) |
static org.apache.axiom.om.OMElement |
toOM(org.w3c.dom.Element src,
org.apache.axiom.om.OMFactory omf) |
static org.apache.axiom.om.OMElement |
toOM(org.w3c.dom.Element src,
org.apache.axiom.om.OMFactory omf,
org.apache.axiom.om.OMContainer parent) |
static org.apache.axiom.om.OMElement |
toOM(javax.xml.transform.Source inputSource)
Parse an XML document located using an
InputSource using the
pooled document builder. |
public static org.apache.axiom.om.OMElement getFirstChildWithName(org.apache.axiom.om.OMElement parent, java.lang.String name)
public static org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement element)
public static org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement element, org.w3c.dom.Document doc)
public static org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement element, org.w3c.dom.Document doc, boolean deepNS)
public static org.apache.axiom.om.OMElement toOM(org.w3c.dom.Element src, org.apache.axiom.om.OMFactory omf)
public static org.apache.axiom.om.OMElement toOM(org.w3c.dom.Element src, org.apache.axiom.om.OMFactory omf, org.apache.axiom.om.OMContainer parent)
public static javax.xml.namespace.QName getTextAsQName(org.apache.axiom.om.OMElement elmt)
elmt
- public static org.apache.axiom.om.OMElement toOM(javax.xml.transform.Source inputSource) throws java.io.IOException
InputSource
using the
pooled document builder.java.io.IOException