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 6707603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:39:33+00:00 2026-05-26T07:39:33+00:00

i am trying to retrive 5 column from database, in one is type of

  • 0

i am trying to retrive 5 column from database, in one is type of XML . while returning to dataset it is treated as string. i need to extract that values as xml and bind to another dataset.

for eg : if my query returns 5 column to dataset, one column is xml. i need to extract that values and store it to another dataset as xml .

i tried to use dstDataset.Tables[0][3].toString(); it returned the entire xml as string. now i need to parse as xml and bind to another dataset.

i hope you pepole got my question.

  • 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-26T07:39:33+00:00Added an answer on May 26, 2026 at 7:39 am

    take a look at the following code:

    DataSet dataSet = new DataSet();
    DataTable dataTable = new DataTable("table1");
    dataTable.Columns.Add("col1", typeof(string));
    dataSet.Tables.Add(dataTable);
    
    string xmlData = "<XmlDS><table1><col1>Value1</col1></table1><table1><col1>Value2</col1></table1></XmlDS>";
    
    System.IO.StringReader xmlSR = new System.IO.StringReader(xmlData);
    
    dataSet.ReadXml(xmlSR, XmlReadMode.IgnoreSchema);
    

    If you replace xmlData with your the data from the column and make sure the schema is correct this should work.

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

Sidebar

Related Questions

I'm trying to retrieve the VideoCollection items from the database, but getting {Invalid column
I'm trying to retrieve records from table by knowing the date in column contains
I'm trying to retrive a dataset to a Gridview, but I just don't get
I've been trying to retrive attachment from message in Exchange 2003 server using WebDAV.
Iam trying to retrieve data from mysql database into stylesheet.php but it is not
I'm trying to retrieve an XML stream from a URL. For most URLs my
I'm trying to make a URL-safe version of a string. In my database I
I am trying to retrive data from my table. But it always returns (null).
I'm trying to retrieve books from one table and left join the chapters table.
I’m trying to select various table and column names from a (SQL Server 2008)

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.