users@jax-rpc.java.net

Creating a SOAPElement instance from an XML file ??

From: Mark D. Hansen <khookguy_at_YAHOO.COM>
Date: Fri, 11 Jul 2003 18:24:54 -0400

I've got a purchase order file - po.xml. I want to create a SOAPElement instance from it (SAAJ 1.2). I can use SOAPFactory to create a SOAPElement - but it is an empty element, and I want to create one from my file. It doesn't look like I can use DocumentBuilder.parse() to create a SOAPElement either - it still just produces org.w3c.Element instances.

What is the best way to do this? Shouldn't there be a SOAPFactory method with a signature like:

public SOAPElement createElement(javax.xml.transform.Source src) ???

Thanks,

Mark