logo       

Envelope Body Element Namespaces: msg#00323

text.xml.soap.user

Subject: Envelope Body Element Namespaces

I'm implementing a messaging interface and I have had some success. Thanks
to a previous thread, I started using the messaging router. So that works
now. I am able to peal off the XML in the body element, but w/ one prob.
The root element of what I grab has an

xmlns=""

and I believe this is breaking a Xalan transform later in the method. I
grab the element like this:

Element bodyNode = (Element) env.getBody().getBodyEntries().elementAt(0);
Element source = (Element)
bodyNode.getElementsByTagName("source").item(0).getFirstChild();

Sample XML:

<Statement xmlns="">
<Parameters>
...filler...
</Parameters>
<Accounts>
... stuff ...
<Accounts>
</Account>
</Accounts>
</Statement>

So, my question is how do I get this element w/o a namespace declaration, or
if that is not possible, how can I get Xalan to ignore it?

--

David B. Bitton
david@xxxxxxxxxxxxxx
www.codenoevil.com

Code Made Fresh DailyT




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise