473,324 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

How to use xml file in asp.net?

31
Dear All,

I am using an httpapi and i get an xml output in return from that. I am newbie to this and dont know how to process the returned xml. Kindly advice how to use this online xml file into my application to display to the user . The format of xml file is as follows :-

- <hashtable>
- <entry>
<string>abc.net</string>
- <hashtable>
- <entry>
<string>status</string>
<string>regthroughothers</string>
</entry>
- <entry>
<string>classkey</string>
<string>dotnet</string>
</entry>
</hashtable>
</entry>
- <entry>
<string>abc.org</string>
- <hashtable>
- <entry>
<string>status</string>
<string>regthroughothers</string>
</entry>
- <entry>
<string>classkey</string>
<string>domorg</string>
</entry>
</hashtable>
</entry>
- <entry>
<string>abc.info</string>
- <hashtable>
- <entry>
<string>status</string>
<string>regthroughothers</string>
</entry>
- <entry>
<string>classkey</string>
<string>dominfo</string>
</entry>
</hashtable>
</entry>
- <entry>
<string>abc.com</string>
- <hashtable>
- <entry>
<string>status</string>
<string>regthroughothers</string>
</entry>
- <entry>
<string>classkey</string>
<string>domcno</string>
</entry>
</hashtable>
</entry>
</hashtable>

It is checking the where domain abc.net, abc.or,abc.com,abc.info are availabe or not..

Now, How to load this in DataSet. Because while loading in dataset its giving error like :-

A column named 'string' already belongs to this DataTable: cannot set a nested table name to the same name.

Please Help



Thanks a ton in advance.



Regards,
Rajan Arora
Feb 2 '11 #1
1 1740
Frinavale
9,735 Expert Mod 8TB
Check out this MSDN article on Loading a DataSet from XML.

:)

-Frinny
Feb 7 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tony George | last post by:
Hi, I'm having a problem using the Copy module on a ClearCase view that's been set as "readonly" (i.e. ct chview -readonly <view tag>). I want to copy a file out of this view and put it in...
3
by: Saulius | last post by:
Hello, I am experiencing a strange problem using file streams in a DLL library. I am using Borland C++ Builder 5.0 Professional and I am trying to simply read a file using ifstream inside a DLL....
0
by: Lachlan Hunt | last post by:
Hi everyone, I've just discovered a registry hack to get around the Windows XP SP2 security bug that prevents files being uploaded as text/html, and thus unable to validate local html files using...
8
by: Ram Baruch | last post by:
Hi, I'm trying to use the File.Copy() function. It works well when the desenation file is local (Like: C:\dest\dest.exe). The problem is that when I'm trying to copy to a destenation that starts...
4
by: DEWright_CA | last post by:
I am trying to see if a file exists in a virtual directory, and if so run a method. I try doing File.Exists and the method runs but the file isn't there. Is there a web version of File.Exists or...
4
by: mabond | last post by:
Hi I have a number of apps which are compiled to a shared network directory. Users run the executables from this directory. When rebuilding my apps I cannot complete the build if the...
1
by: Zark3 | last post by:
Hi all, Unsure if this is the best group to place this, but here it is anyway ;). I've got a large text file that needs rewriting into a different format, and decided to try it using C#, which...
4
by: RLN | last post by:
Re: Access 2003/WinXP Pro-SP3 I have a shell command that does not run correctly. I have two programs located on a file server: Pgm1.mdb and Pgm2.mdb Pgm1 launches Pgm2 via a command button...
2
by: charlesbritto | last post by:
A C++ program for counting individual string in a text file using file handling functions., for ex: if the text file contains, am a boy,am studying +2,am from chennai Now the result shoud...
1
by: vinodkus | last post by:
dear sir/madam Can any one help me how to connect ASP and MS ACCESS using FILE DSN. Thanks in Advance vinod
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.