> From: Fred Meredith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 5:16 PM
>
> I'd use a StringBuffer object to build the XML string the way
> you need it to
> be and then do something like this:
>
> DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
> Document doc = xdb.parse(new InputSource(new
> StringReader(stringBuffer.toString())));
> Envelope env = Envelope.unmarshall(doc.getDocumentElement());
>
Correct me if I'm wrong, but you seem to be saying:
Build it as a string.
Parse it.
Unparse it.
That doesn't seem right. One may as well just insert the string into the
envelope directly.
If you want to build a DOM version, doesn't it make more sense to build it
directly, instead of building the string and parsing it?
Gary
====================================================================
Ready-to-Run Software, Inc.
The Industry's Leading Provider of
Cross-Platform and Porting Services
*****************************
email: [EMAIL PROTECTED] Gary Feldman
fax : 1-978-692-5401 Ready-to-Run Software, Inc.
voice: 1-978-251-5431 11 School Street
www : http://www.rtr.com North Chelmsford, MA 01863
USA