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

Re: SAX2: Interning names in namespaces

  • From: Stefan Haustein <stefan.haustein@t...>
  • To: Terje Norderhaug <terje@i...>, xml-dev@x...
  • Date: Sat, 05 Feb 2000 13:46:18 +0100

combined names
> There has also been a discussion about how to encode names with an
> associated namespace, typically by merging the two into a string.
> Suggestions ranged from placing brackets around the namespace URI to
> separating the URI from the actual name with a space.

Do you know if an official recommendation for storing a
namespace-name pair in a single string exists? I switched 
to combined names in my application because they are much 
simpler to handle than pairs of separate string objects.

> The current SAX2 beta uses multiple strings to represent a name in its
> namespace. This has caused several of the methods in the recent beta of
> SAX2 to have a rather cluttered argument list compared to SAX1.
> 
> PROPOSAL
> 
> I suggest that parsers interns each name as a separate string in the
> namespace it belong to. This should guarantee that two equal names in the
> same namespace are identical, and that two equal names in different
> namespaces are unidentical.

Sounds too complicated for broad acceptance, and I must admit that I do
not
see the great benefit. From an OOP point of view, it would probably be 
cleaner to have an own object or interface combining namespace, name and
prefix,
providing corresponding compare methods, but this is a discussion we
already
had some time ago....

Best regards

Stefan



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.