XML: do child nodes inherit parent's namespace prefix?



Assume the following XML document:



<root xmlns:foo="...">
<foo:parent>
<child/>
</foo:parent>
</root>


does child element belong to a namespace that corresponds to the prefix foo? Just like in case <foo:child/>?


No comments:

Post a Comment