Creates a
SOAPElement
object from an existing DOM
Element
. If the DOM
Element
that is passed in
as an argument is already a
SOAPElement
then this method
must return it unmodified without any further work. Otherwise, a new
SOAPElement
is created and a deep copy is made of the
domElement
argument. The concrete type of the return value
will depend on the name of the
domElement
argument. If any
part of the tree rooted in
domElement
violates SOAP rules, a
SOAPException
will be thrown.
Returns:
a new
SOAPElement
that is a copy of
domElement
.
Parameters:
-
domElement - - the
Element
to be copied.
Throws:
-
SOAPException - if there is an error in creating the
SOAPElement
object
Since:
SAAJ 1.3