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