Typed DataSet and XmlDataDocument in VS/VB .NET 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Typed DataSet is generating DataSetName as a Root node when I write XmlDataDocument.WriteTo(writer)
I found a way around it (using SelectSingleNode) but I cannot find the solution when loading XmlDataDocument linked to a similar typed DataSet, from an XML file that doesn't have that DataSetName as a Root node
Both DataSets were auto-generated based on Schemas added to the project.
Thank you
 
Run a transform on the XML with the root named <ROOT> and give it the
DataSetName as a new name for the node. XSLT is a wonder when you have to
alter XML for any reason, even to adjust the naming of nodes for another
schema. If you can still get a copy, the Wrox book is quite good on XSL.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
Gabe said:
Typed DataSet is generating DataSetName as a Root node when I write XmlDataDocument.WriteTo(writer).
I found a way around it (using SelectSingleNode) but I cannot find the
solution when loading XmlDataDocument linked to a similar typed DataSet,
from an XML file that doesn't have that DataSetName as a Root node.
 
Back
Top