[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: To namespace or not to Namespace ....

  • From: Stephen Green <stephengreenubl@gmail.com>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 7 Apr 2010 19:39:17 +0100

Re:  To namespace or not to Namespace ....
The strongest antipathy in this thread against namespaces and prefixes
seems to be from those considering people actually seeing and editing
the raw XML but surely the real problems are for those writing code to
handle the XML if it contains multiple prefixes / namespaces. Then there
is likely to be a real attempt to remove the prefixes by first converting the
XML into something without them before writing all the real code - so as to
avoid code-maintenance nightmares.

---

Stephen D Green

On 7 April 2010 19:26, Andrew Welch <andrew.j.welch@gmail.com> wrote:
> On 7 April 2010 18:28, Liam R E Quin <liam@w3.org> wrote:
...
>> All this is not to say that namespaces have no use. But they are used
>> much more often than they are needed, they are wanted less often still,
>> and they are ineffective at solving many of the problems people often
>> expect them to solve.
>>
>> If you put prefixes on all your elements in case someone wants them,
>> the chances are every bit as high that someone else will need to take
>> them all off again. There's no single future-proof answer for all
>> environments.
>
> What do you mean when you say "someone else will need to take them all
> off again" ?
>
> The choice seems to be:
>
> a) If you use the proper tools to process the XML and the developers
> doing the processing know a little about XML... If so then using a
> namespace (with prefix) is a good idea
>
> or
>
> b) You process the XML with something like PHP, and the majority of
> the developers think XML is just like HTML... it's just angle brackets
> after all... they create it by concatenating strings and read it using
> regexes.  If so, then you should avoid namespaces completely (and also
> avoid entity refs, and numeric refs, and stick to ascii etc...)
>
>


[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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.