Re: [xml-dev] HTML5 and almost no namespaces

From
Pete Cordell <>
To
Date
2011-06-07T09:27:14Z
ID
<DD1D793BDD40445694FAF7CC5DA4A7B7@codalogic>
Thread
Re: [xml-dev] HTML5 and almost no namespaces
Following this thread I'm warming to David's suggestion of not using 
namespaces.  But to address my paranoia and pessimism I'm thinking of making 
the outer most document element be reverse domain name based.  e.g. an 
xs:schema XML document would be like:

<com.w3.schema>
    <element name='MyElement'/>
</com.w3.schema>

That covers off a lot of simple XML cases, but doesn't handle well things 
like QName's as found in XSD's type element where you want to differentiate 
between a type specified in the XSD namespace (such as xs:string), a type 
specified in the local namespace or a type specified in a sister namespace. 
For example, I wouldn't want to have to keep doing:

    <element name='MyElement' type='com.w3.schema.string'/>

The search goes on!

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
Twitter: http://twitter.com/petecordell