By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,276 Members | 1,328 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,276 IT Pros & Developers. It's quick & easy.

programmatically creating a table in dotnet

P: n/a
Hi,

I need to create a temp table in my asp.net web services program. I
have an xml file of the format

<uom_masters>
<uom_code>varchar</uom_code>
<uom_description>varchar</uom_description>
<uom_tolerance>money</uom_tolerance>
</uom_masters>

I need to read the fields along with the datatypes an create a table
with all these fileds in the program itself. Does anyone have an idea
how to do it. Thanks in advance

Mar 20 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

To fill a DataSet with data from XML, simply use the DataSet.ReadXml()
method. You can use the XmlReadMode parameter to fine tune your
requirements.

For more information : (MSDN help)

ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconloadingdatasetfromxml.htm

Check out this link for more information related to what you're doing :

http://msdn2.microsoft.com/en-us/library/s5xy331f.aspx

Hope this helps,

Regards,

Cerebrus.

Mar 20 '06 #2

P: n/a
Priya,

Don't look that this is a windowsforms sample, creating the datatable is the
same.

http://www.vb-tips.com/default.aspx?...8-1def3152436f

I hope this helps,

Cor

"Priya" <pr****************@gmail.com> schreef in bericht
news:11**********************@j33g2000cwa.googlegr oups.com...
Hi,

I need to create a temp table in my asp.net web services program. I
have an xml file of the format

<uom_masters>
<uom_code>varchar</uom_code>
<uom_description>varchar</uom_description>
<uom_tolerance>money</uom_tolerance>
</uom_masters>

I need to read the fields along with the datatypes an create a table
with all these fileds in the program itself. Does anyone have an idea
how to do it. Thanks in advance

Mar 20 '06 #3

P: n/a
Hi,

Thanks for the help The link was useful. I have resolved my problem of
creating temp table

Mar 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.