<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Is there a reason why I have to do the following,
given:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><Envelope
xmlns="http://schemas.xmlsoap.org/someschema"></FONT></DIV>
<DIV><FONT face=Arial size=2> <Body></FONT></DIV>
<DIV><FONT face=Arial size=2>
<businessList /></FONT></DIV>
<DIV><FONT face=Arial size=2> </Body></FONT></DIV>
<DIV><FONT face=Arial size=2></Envelope></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Code in question:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Element envelope = getSoapEnvelope(Element
requestEnvelope);</FONT></DIV>
<DIV><FONT face=Arial size=2>Element body = envelope.getChild("Body",
envelope.getNamespace());</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Shouldn't getChild() check to see if there are
children without explicitly declared namespaces and automatically pick them up
if I were to just use</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Element body =
envelope.getChild("Body");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The behaviour that I think would be most intuitive
would be if children were assumed to be in the same namespace as their parent
UNLESS they declare otherwise. Element does work this way already, as
evidenced by the Namespace-less signature not working on my sample XML, but
Element.getChild() does not work in a way consistent with this.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Matt</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>