all groups > dotnet xml > may 2006 >
You're in the

dotnet xml

group:

How to save xml file to SQL2000? with c#


How to save xml file to SQL2000? with c# Shuan
5/30/2006 12:00:00 AM
dotnet xml:
hi, How to save next xml file to SQL2000? with c#

thanks!

<?xml version="1.0" encoding="gb2312"?>
<MyData>
<CLIENT>
<CLIENTID><![CDATA[2300021923]]></CLIENTID>
<CLIENTNAME><![CDATA[guest1]]></CLIENTNAME>
<LOCALWEBSITE><![CDATA[index.shtml]]></LOCALWEBSITE>
<SOURCEWEBSITE><![CDATA[www.sogou.com]]></SOURCEWEBSITE>
<SOURCEAREA><![CDATA[China]]></SOURCEAREA>
<REQUESTSORT><![CDATA[infor]]></REQUESTSORT>
<USERID><![CDATA[8061266]]></USERID>
<USERNAME><![CDATA[peter]]></USERNAME>
<MSG><![CDATA[Welcome!]]></MSG>
</CLIENT>
<CLIENT>
<CLIENTID><![CDATA[2300022020]]></CLIENTID>
<CLIENTNAME><![CDATA[guest2]]></CLIENTNAME>
<LOCALWEBSITE><![CDATA[null]]></LOCALWEBSITE>
<SOURCEWEBSITE><![CDATA[null]]></SOURCEWEBSITE>
<SOURCEAREA><![CDATA[China]]></SOURCEAREA>
<REQUESTSORT><![CDATA[report]]></REQUESTSORT>
<USERID><![CDATA[8061266]]></USERID>
<USERNAME><![CDATA[peter]]></USERNAME>
<MSG><![CDATA[Welcome!]]></MSG>
</CLIENT>
</MyData>

Re: How to save xml file to SQL2000? with c# Shuan
5/31/2006 12:00:00 AM
and not with DataSet.

thanks.

"Shuan" <shuan@163.com> дÈëÏûÏ¢ÐÂÎÅ:u6E3hN8gGHA.3900@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

Re: How to save xml file to SQL2000? with c# John Fullmer
5/31/2006 9:36:20 AM
The easiest way is to iterate the nodes, cut out the values (evaluating
nodes names/ids as you go). Will work fine if you have a rough idea of
what the xml will always look like. If like the example you've
included. Should be a snap.

~ John Fullmer

[quoted text, click to view]
Re: How to save xml file to SQL2000? with c# Shuan
6/2/2006 12:00:00 AM
Would you give me an example, Please.


"John Fullmer" <jkf35@hotmail.com>
??????:1149093380.487914.105530@h76g2000cwa.googlegroups.com...
The easiest way is to iterate the nodes, cut out the values (evaluating
nodes names/ids as you go). Will work fine if you have a rough idea of
what the xml will always look like. If like the example you've
included. Should be a snap.

~ John Fullmer

[quoted text, click to view]

AddThis Social Bookmark Button