[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Pete Cordell" <petexmldev@c...>
  • To: "Andrew Welch" <andrew.j.welch@g...>
  • Date: Fri, 30 Sep 2011 14:41:04 +0100

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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member