Welcome to MSDN Blogs Sign in | Join | Help

XPathNavigator and the DataSet

An article I recently wrote about an XPathNavigator over DataSets is currently running on MSDN (http://msdn.microsoft.com/xml/default.aspx?pull=/library/en-us/dnxmlnet/html/datasetnav.asp).  Might be an interesting read if you ever perform XPath queries or XSLT transformations on top of DataSets.
Published Tuesday, August 24, 2004 11:21 PM by arpande

Comments

# RE: XPathNavigator and the DataSet

Good article and interesting approach.
What about synchronization of the internal tree with DataSet? I mean what should be done when DataSet is changed?
Talking about XPathDocument - apparently the price of reparsing can be reduced in Whidbey writing to XPathDocument using XmlWriter, right? But it's memory hog - all data must be copied, here DataSetNavigator is more effective.
Wednesday, August 25, 2004 2:20 AM by oleg@tkachenko.com (Oleg Tkachenko)

# re: XPathNavigator and the DataSet

Any insight on how to apply the namespace functtionality?
Wednesday, August 25, 2004 7:29 AM by Rogelio Morrell

# re: XPathNavigator and the DataSet

Synchronization - That would be another interesting feature to add. It could be accomplished by catching the change events on the DataSet.

XPathDocument - You're correct about being able to load from the XmlWriter in Whidbey. This should increase performance relative to V1.0 or V1.1, but for large sets of data, the overhead of shuttling the data into the document will still be high.

Namespace functionality - Currently the nodes in the tree which is generated has members which represent the node's position (parent, children, position relative to siblings), adding a namespace member which points to the Namespace property on the DataSet or DataTable, for example, would enable exposure via the navigator.
Wednesday, August 25, 2004 9:21 AM by Arpan Desai
Anonymous comments are disabled
 
Page view tracker