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

RE: The Peace Process: DOM and namespaces...

  • From: Chris Lovett <clovett@m...>
  • To: XML Dev <xml-dev@i...>
  • Date: Fri, 12 Feb 1999 12:29:54 -0800

ie5 dom
An interesting thread.  First, the DOM committee is addressing this issue
this week.  IMHO the degree in which XML namespaces succeed will determine
the breadth and depth of the success of XML in general, and not just XSL -
so I eagerly await what the DOM committee comes up with.

We have a namespace implementation in our DOM which we are shipping in IE5,
and I think IBM and Sun also have a solution.  I didn't fully understand all
the arguments presented here - but our experience is that although
namespaces are not trivial to implement in an efficient manner, it is
doable.

In the IE5 DOM implementation we expose namespaces via new properties on the
node, "namespaceURI", "basename" and "prefix" and we added a new createNode
method to DOMDocument that allows you to specify a namespaceURI for that
node.  Processing namespaces during document load was not too hard to
implement.  The most difficult thing was cut & paste and making sure the
saved document had all the right xmlns attributes.  We can probably improve
our implementation by minimizing the number of xmlns attributes we generate.

I did some experiments with hamlet.xml:
1) no namespaces 
2) put default namespace on the root PLAY tag 
3) put a prefix "p:" on all tags 
4) added a nested prefix "q:" on all the tags in ACT 1. 
5) gave all 5 acts a different prefix.

When looking at megabytes/second during load there was about a 1% delta
between 1 and 2 and a 7% delta between 1 and 3, but 3,4 and 5 were pretty
much indistinguishable.  So unless you have hundreds or thousands of
different namespaces in one document (which I don't anticipate to be the
norm), the performance is not too bad.


- Chris.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.