[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|