For example, lets assume that we have an element called "foo" that is in the "urn:foo.bar" namespace, and it has a child element called "bar", which is a local element to "foo" and therefore is in no namespace. You could represent it like so:
<tns:foo xmlns:tns="urn:foo.bar">
<bar>foobar</bar>
</tns:foo>
or
<foo xmlns="urn:foo.bar">
<bar xmlns="">foobar</bar>
</foo>
but this would not be valid:
<foo xmlns="urn:foo.bar">
<bar>foobar</bar>
</foo>
<bar>foobar</bar>
</tns:foo>
or
<foo xmlns="urn:foo.bar">
<bar xmlns="">foobar</bar>
</foo>
but this would not be valid:
<foo xmlns="urn:foo.bar">
<bar>foobar</bar>
</foo>
Anne
On 4/19/06, Daniel Destro <[EMAIL PROTECTED]> wrote:
What is the difference between the two namespaces
xmlns="urn:SacSilog"
and
xmlns:ns1="urn:SacSilog">
Why one or other?
thanks