January 28, 2004
@ 01:38 AM

Fumiaki Yoshimitu writes

 DOM L3 Validation gets recommended.

We know that XPathDocument2 will have validation (and augmentation) feature, but how about XmlDocument?  Will it support any of the DOM L3 feature?  This is another question related to the rumor that XmlDocument is dead.  Dare?
Actually we've decided to rethink having a Validate() method on the class that is currently called XPathDocument2 because it may lead users down the wrong path. Our worry is that users will end up loading an XML document and then call Validate() on it thus incurring the cost of two passes over the document as opposed to the more efficient approach of loading the document with a validating XmlReader. For this reason we've removed the Validate() method from the class.
Also there is no plan to have XmlDocument support any DOM L3 feature. Moving forward, the primary representation of in-memory XML documents on the .NET Framework will be the class currently called XPathDocument2 and that is where the Microsoft WebData XML team's efforts will be spent.


Wednesday, January 28, 2004 5:12:59 AM (GMT Standard Time, UTC+00:00)
Any idea when XPathDocument2 will be supported on the compact framework?

Is it recommended to rewrite code that currently uses XmlDocument to instead use XPathDocument2 now?
Wednesday, January 28, 2004 5:20:00 AM (GMT Standard Time, UTC+00:00)
The XPathDocument2 class is only available via the PDC builds. Ideally the class and it's associated classes (XPathNavigator2 and XPathEditor) will be renamed by Whidbey beta. I have no idea how decisions are made for what goes into the Compact Framework so cannot if and when the new class will make it there.
Wednesday, January 28, 2004 2:47:13 PM (GMT Standard Time, UTC+00:00)

So ... to be clear ... for those of us developing with shipped and supported tools (VS.NET 2003 and .NET 1.1) -- System.Xml.XmlDocument, its current XPath capabilities and XmlReader/Writer is currently the "best practice" way to build apps. (NOTE: These classes are supported in both the full and compact versions of the framework).

Did I get this right?
Wednesday, January 28, 2004 2:57:55 PM (GMT Standard Time, UTC+00:00)
Wednesday, January 28, 2004 9:39:31 PM (GMT Standard Time, UTC+00:00)
hah! i suppose i should have read this post before i commented on your previous post about your meet with AH. ;)
John Morales
Comments are closed.