org.apache.ode.il
Class OMUtils
java.lang.Object
org.apache.ode.il.OMUtils
public class OMUtils
- extends java.lang.Object
Utility methods to convert from/to AxiOM and DOM.
Method Summary |
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 void |
main(java.lang.String[] args)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OMUtils
public OMUtils()
toDOM
public static org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement element)
toDOM
public static org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement element,
org.w3c.dom.Document doc)
toDOM
public static org.w3c.dom.Element toDOM(org.apache.axiom.om.OMElement element,
org.w3c.dom.Document doc,
boolean deepNS)
toOM
public static org.apache.axiom.om.OMElement toOM(org.w3c.dom.Element src,
org.apache.axiom.om.OMFactory omf)
toOM
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)
getTextAsQName
public 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).
- Parameters:
elmt
-
- Returns:
- text qname
toOM
public static org.apache.axiom.om.OMElement toOM(javax.xml.transform.Source inputSource)
throws java.io.IOException
- Parse an XML document located using an
InputSource
using the
pooled document builder.
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)