Re: [xml-dev] namespaces redux

From
Pete Cordell <>
To
Michael Sokolov <>, Andrew Welch <>
Date
2012-10-17T09:56:16Z
ID
<BF4A60E0DA2840238F50DF44A826AC5C@codalogic>
Thread
Re: [xml-dev] namespaces redux
Original Message From: "Michael Sokolov" 
> On 10/16/2012 6:47 AM, Andrew Welch wrote:
>>>> 3. Avoid using URLs, the globally unique benefit
>>>> is far outweighed by the confusion cost
>>> Are you recommending that URNs be used rather than URLs?
>> I'm advocating simple strings for simple cases, for example for a
>> config file someone might be tempted to use:
>>
>> xmlns:c="http://mycomp.com/someproduct/v1.1/config/"
>>
>> whereas they could just do:
>>
>> xmlns:c="config"
>>
> My preference is to use the same string for prefix and namespace:
> 
> xmlns:config="config"

In that case, wouldn't it be easier to just do:

    <config.foo>...</config.foo>

and side step the who namespace issue altogether?

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