Random photo
Loading...
Domains for sale
|
January 15, 2004How to kill DOMIn the beginning Microsoft created the Microsoft.XMLDOM, known today as Msxml2.DOMDocument. And people like(d) it much. Then .NET happened and people were given XmlReader, XmlWriter, XmlDocument, XPathDocument, XPathNavigator and XmlDataDocument. Seriously, why XmlDocument is so overused? I think there are several reasons, from psychological to usability-related ones.
Well, we can do nothing with first and the last issues. System.Xml v2 will fix 2nd issue. Additionally XPathDocument will be improved with XSD types support, changes tracking, ability to validate, to reflect relational data via XmlAdapter etc. I'm sure they will make API more simple for ordinar developer too. In fact, System.Xml v2 gonna rock! So the only issue to cope with is community-wide DOM habit. How to kill it? I believe only with improving alternative APIs, leaving it out of XQuery-related future mainstream and evangelizing-evangelizing-evangelizing... Last task should be taken by XmlInsiders. Btw, did you know that "dom" word means "home" in Russian? January 15, 2004 4:13 PM
| #XML in .NET
Comments
Hehe, I didn't. It's close to english "dumb" probably. Posted by: Oleg Tkachenko at January 21, 2004 5:25 PMdid you know "dom" means "stupid" in dutch? Posted by: tse at January 21, 2004 5:16 PMYeah, I forgot this one. Another reason people used the DOM is because it is a W3C spec, and is used on many different platforms. I can easily convert JScript that was used in IE's Element Behaviors to ECAMScript embedded in SVG as long as the JScript used the only the W3C DOM API, since both HTML and SVG both implement the DOM Spec. It is just as easy to convert the ECMAScript to C# and .Net, since the .Net framework implements the W3C DOM API (well mostly anyway). Don't get me wrong, I'm tired of all the problems with the DOM and want to help convert people to XPathDocument, it is just good to know why so many people use the DOM. DonXML Demsak Posted by: DonXML Demsak at January 15, 2004 5:47 PMPost a comment
|