That's entirely correct.

The parent element was assigned a default namespace URI
      <NewNETP xmlns="XXX" ...
You then -- erroneously, by the way; you should NEVER use the old
non-namespaced factory methods together with namespace-aware nodes! --
created a bunch of non-namespaced children.To properly express that in XML
syntax,  the default namespace must be explicitly cleared, which means
xmlns="" must be generated.

Depending on what you intended to do, consider one of:

1) Accept that this is the correct result.

2) Use an explicit (non-default) namespace on the parent element (give it a
prefix and bind that prefix), so the children aren't inhertiting a default
that must be cleared.

3) Put the children into the same namespace as the parent.


______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to