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, 28 January 2004 05:12:59 (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, 28 January 2004 05:20:00 (GMT Standard Time, UTC+00:00)
Phil,
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, 28 January 2004 14:47:13 (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, 28 January 2004 14:57:55 (GMT Standard Time, UTC+00:00)
Yes.
Wednesday, 28 January 2004 21:39:31 (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.