Re: [xml-dev] A proposal for application level XML 'namespaces'

From
Pete Cordell <>
To
Andrew Welch <>
Date
2011-09-30T13:41:04Z
ID
<A714DF8519FB4050B2F429F980B22D31@codalogic>
Thread
Re: [xml-dev] A proposal for application level XML 'namespaces'
Original Message From: "Andrew Welch"
>
>>> <mysc:parent xmlns:mysc="mysc">
>>
>> Does that buy you much over doing:
>>
>> <mysc.parent>
>
> hmm well you do know it's in the 'mysc' namespace, whereas in the
> latter you can't be sure if its in no namespace.  And also with the
> latter, if you pasted that into another document it would take on any
> existing default namespace change.
>
> If the prefix-as-the-namespace caught on, you could envisage parsers
> falling back to using the prefix as the namespace where there is no
> existing mapping, making the xmlns optional.

Hmm indeed!  Food for thought.  Especially the pasting and adopting the 
containers default namespace.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info