Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 28th, 2006, 06:25 AM
saudakhan@gmail.com
Guest
 
Posts: n/a
Default Read/ Update/ write XML using Dataset()

Hi,
I have a wierd XML file

<Ins>
<HomeP>
<RqUID>SomeRqUID1</RqUID>
<Trans>2006-02-17</Trans>
<HomeL>
<LOB>HOME</LOB>
<Producer>
<ProducerInfo>
<ContractNumber>3098048</ContractNumber>
</ProducerInfo>
<ItemIdInfo>
<A>123456</A>
</ItemIdInfo>
<GeneralP>
<NameInfo>
<CommlName>
<CommercialName>Agent Name</CommercialName>
</CommlName>
</NameInfo>
<Addr>
<AddrTypeCd>MailingAddress</AddrTypeCd>
<Addr1>690 A Ave</Addr1>
<City>City</City>
<StateProvCd>CT</StateProvCd>
<PostalCode>06115</PostalCode>
</Addr>
</GeneralP>
</Producer>
</HomeL>
</HomeP>
</Ins>

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

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles