Groups | Blog | Home
all groups > dotnet xml > june 2005 >

dotnet xml : XSD + DataSet = XML!?!


MartinP
6/23/2005 12:00:00 AM
Hi There.

I've been doing a little research, but found little of value.

My problem's this: I've got a DataSet containing a serious bunch of data.
From this DataSet I want to "extract" some of the values (values in specific
datatable columns). I've got an XSD which has the right syntax for what I
want. How do I extract the correct data from the dataset? Isn't possible to
do, without iterating through the DataSet? (A little like the XML functions
for SQL Server 2000 sp3 (SQLXMLBulkLoad, where you pass an XSD and an XML
file as arguments) :-D)

/Matrin

Lelekács Zoltán
7/26/2005 12:04:24 AM
Hi,

[quoted text, click to view]
May you can create an empty Dataset from the XSD with the needed columns and
call Merge function of it to load the rows from the origin table with
MissingSchemaAction.Ignore param. After you can get the XML.

lelez
----------------------------------------
http://www.lelez.hu

AddThis Social Bookmark Button