I'm not sure about getting a DOM without creating a new parser. I don't
know of any way to do that.
I do know how, with help from the group, now how to get a DOM of the XML
returned. You have to create a new parser, but you may choose which one you
would like to use. I use basically this code:
Response r = myCall.invoke("myURL", "myAction");
String xml =
(String)((javax.mail.internet.MimeBodyPart)r.getBodyPart(0)).getContent();
org.apache.xerces.parsers.DOMParser parser = new
org.apache.xerces.parsers.DOMParser();
parser.parse(new org.xml.sax.InputSource(new java.io.StringReader(xml)));
org.w3c.dom.Document DOMdoc = parser.getDocument();
I had to create a function to remove the blank nodes though that are created
since there are endlines and something else I never found out what they
where (but isWhiteSpace() results in true). You will get extra nodes that
display as blank if you don't.
Peter Roth
Telemetry Technologies Inc.
p: 404.231.0021 ext. 1290
e: [EMAIL PROTECTED]
-----Original Message-----
From: Morten J Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 9:24 AM
To: [EMAIL PROTECTED]
Subject: Does Apache SOAP use DOM for parsing/representation of XML?
Hi,
Does the Apache SOAP API use DOM to represent the XML, and it is possible
to get the DOM tree for the body element without creating a new parser
(SAX/DOM)?
Is it possible (configuration) to use a SAX parser with Apache SOAP instead
of DOM?
Any imput is apreciated!
Regards
Morten Jul Nielsen
----------------------------------------------------------------------
Advisory IT-Specialist, Master of Science in Engineering - Informatics
Mobile e-business Practice
Business Innovation Services, IBM Global Services
Sortemosevej 21 - E1C, DK-3450 Aller�d, Denmark
Phone: + 45 45239517, Mobil : +45 23236116 Fax: +45 45236805