Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7030243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:38:42+00:00 2026-05-28T00:38:42+00:00

I use a dataset for reading a XML ds.ReadXML(steam); My XML look like this

  • 0

I use a dataset for reading a XML

ds.ReadXML(steam);

My XML look like this :

<models.Client>
    <id>1</id>
    <libelle>test</libelle>
    <nbSite>0</nbSite>
    <cabinet>false</cabinet>
    <clinique>false</clinique>
    <irm>0</irm>
    <scanner>0</scanner>
    <adresse>
        <id>1</id>
        <ligne1>1, rue toto</ligne1>
        <ligne2 />
        <codePostal />
        <ville />
        <coordonnee>
            <id>1</id>
            <telephone />
        </coordonnee>
    </adresse>
</models.Client>

How I can get the “ligne1” value ?
for “libelle”, I get the value this way :
ds.Tables[0].Rows[0]["libelle"].ToString(); and it’s ok, but “ligne1” is a child of models.Client.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:38:42+00:00Added an answer on May 28, 2026 at 12:38 am

    It will be the second (index = 1) datatable, so:

    ds.Tables[1].Rows[0]["ligne1"].ToString();
    

    which will print: 1, rue toto

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this page, it's possible to use TClientDataset as an in-memory dataset, completely
I'm using a CSV dataset config element, which is reading from a file like
I am reading in an XML file into a Dataset, then adding a new
How can I use .NET DataSet.Select method to search records that match a DateTime?
I'm attempting to use the DataSet designer to create a datatable from a query.
How can I use Linq with Dataset.xsd files? I've looked at Linq-to-Datasets and Linq-to-XSD
Is it necessary to use Nothing keyword to initialize a DataSet in VB.NET?
While looping through a Dataset which code snippet should I use, should I go
Brief question What command can I use to make my DataSet refresh it's connection
I have a DataSet populated from Excel Sheet. I wanted to use SQLBulk Copy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.