Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Read/ Update/ write XML using Dataset()

Thread Tools

Read/ Update/ write XML using Dataset()
Posts: n/a
I have a wierd XML file

<CommercialName>Agent Name</CommercialName>
<Addr1>690 A Ave</Addr1>

As you can see, I cant figure ou how many tbles I am supposed to asume,
or read a first. I need to daisplay this Document on a form, and the
Update it with new values uing A DataSet.
I can read tables like
foreach(DataRow dr in XmlDs.Tables["HomeP"].Rows)
Response.Write("0 ele of "+tname+"= "+dr[0]+"<br>");

But how do I get to know wether there is a table later or a row?
and XmlDs.Tables["HomeP"].Rows.Count;

gives me 1 ????
How do I go about here?
plz help

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to write xml file using existing XML Schema file? Martin Honnen ASP .Net 0 11-13-2009 06:41 PM
Write to error log using redirect:write Petterson Mikael XML 1 09-11-2006 12:06 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Using write function within email Module to write get_payload to afile. Chuck Amadi Python 0 06-22-2004 12:13 PM
write a union object using write JasBascom C++ 1 02-24-2004 08:18 AM