Hello,

I read that child elements "inherit" the namespace of their parent by default 
("Professional Java SOAP", p30, Wrox Press). The W3C spec says that they're in scope 
for all children. But that's not the same as inheriting. To my understanding, 
"inheriting" would mean that the children automatically become members of the parent's 
namespace unless explicitly overridden while "in scope" means that the namespace is 
merely *available* to the children. 

According to the book, the following examples are semantically equivalent:

<ns:elemA xmlns:ns="urn:myNS">
  <elemB/> <!-- this elem would implicitly be in the 'ns' namespace -->
</ns:elemA>

<ns:elemA xmlns:ns="urn:myNS">
  <ns:elemB/>
</ns:elemA>

I don't think this is correct but I would like to hear from more knowledgable sources. 
The behavior of the Xerces implementation of DOM does not conform to the above.

---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to