Replacing the obsolete System.Xml.XmlDataDocument? Replacing the obsolete System.Xml.XmlDataDocument? asp.net asp.net

Replacing the obsolete System.Xml.XmlDataDocument?


ds.I ran into this problem with 3.5 as well. Here is what I came up with:

XmlDocument xmlDoc = new XmlDocument();xmlDoc.LoadXml(ds.GetXml());xml1.XPathNavigator = xmlDoc.CreateNavigator();                xml1.TransformSource = @"~/XSLT/LogEntryTransform.xslt";

Hope it helps.


Use Linq2XML - it's way more powerful than any of the other XML tools.... allows you to query and create/read/update/delete (CRUD) the XML just like you would a dataset or other strongly typed data source.

Once you get started with Linq you'll never go back to the old ways... it absolutely rocks!