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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:11:48+00:00 2026-06-03T13:11:48+00:00

Is there any way to retrieve a table from a web service to a

  • 0

Is there any way to retrieve a table from a web service to a wp7 app page as its?
i just wanna sth easy to use than making a table each time getting data

  • 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-06-03T13:11:50+00:00Added an answer on June 3, 2026 at 1:11 pm

    Have look on MSDN for System.Xml namespace. It contains lot of usable classes. You should use XmlReader or something similair to load it to array or generic collection. Hope this helps, ’cause bit unclear question.

    EDIT:

    This is the code what have I done for loading sample data to generic collection:

    Sample data:

    <?xml version="1.0" encoding="utf-8" ?>
     <studentPunishmentsTables>
      <studentPunishmentsTable>
        <fromSemester/>
        <fromSemesterDesc/>
        <issueDate>01/04/2012</issueDate>
        <note/>
        <penalty>Course Failure</penalty>
        <semester>311</semester>
        <semesterDesc>First Semester 31/32</semesterDesc>
        <toSemester/>
        <toSemesterDesc/>
      </studentPunishmentsTable>
      <studentPunishmentsTable>
        <fromSemester/>
        <fromSemesterDesc/>
        <issueDate>01/04/2012</issueDate>
        <note/>
        <penalty>Semester Failure</penalty>
        <semester>311</semester>
        <semesterDesc>First Semester 31/32</semesterDesc>
        <toSemester/>
        <toSemesterDesc/>
      </studentPunishmentsTable>
    </studentPunishmentsTables>
    

    Code:

    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml;
    using System.IO;
    
    namespace XMLStudent
    {
        class Program
        {
            static void Main(string[] args)
            {
                XmlDocument doc = new XmlDocument();
                doc.Load("st.xml");
                List<StudentPunishment> sp = new List<StudentPunishment>();
                foreach (XmlNode nod in doc.SelectNodes(@"studentPunishmentsTables/studentPunishmentsTable"))
                {
                    StudentPunishment s = new StudentPunishment();
                    s.FromSemester = nod.ChildNodes[0].InnerText;
                    s.FromSemesterDesc = nod.ChildNodes[1].InnerText;
                    s.IssueDate = nod.ChildNodes[2].InnerText;
                    s.Note = nod.ChildNodes[3].InnerText;
                    s.Penalty = nod.ChildNodes[4].InnerText;
                    s.Semester = nod.ChildNodes[5].InnerText;
                    s.SemesterDesc = nod.ChildNodes[6].InnerText;
                    s.ToSemester = nod.ChildNodes[7].InnerText;
                    s.ToSemesterDesc = nod.ChildNodes[8].InnerText;
                    sp.Add(s);
                }
                Console.WriteLine(sp[0].IssueDate);
                Console.Read();
            }
        }
        class StudentPunishment
        {
            public string FromSemester { get; set; }
            public string FromSemesterDesc { get; set; }
            public string IssueDate { get; set; }
            public string Note { get; set; }
            public string Penalty { get; set; }
            public string Semester { get; set; }
            public string SemesterDesc { get; set; }
            public string ToSemester { get; set; }
            public string ToSemesterDesc { get; set; }
        }
    }
    

    So. This code is loading XMLDocument with sample data and it’s selecting data of each studentPunishmentsTable into new object of StudentPunishment class. There’re properties for holding that data. After everything is done and object of student’s punishment is added into generic collection (‘List’), code is trying to show date of first object in collection. You can test is yourself, it’s working for me.

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

Sidebar

Related Questions

Is there any easy way to retrieve table creation DDL from Microsoft Access (2007)
Is there any way to retrieve the names of the stored procedures by some
Is there any way to retrieve the address map file for ntdll.dll? I know
Is there any way to retrieve the parent layout of a widget in Qt?
Is there any way to retrieve all friends in a particular network? For example,
Is there any way to retrieve information about how many extra displays there are
I'm part way through building a fairly complex HTML5 web app, that retrieves its
Is there any way to change the BackColor of the border of a panel
Is there any way I can run class files (i.e. with main as the
Is there any way to view the reduction steps in haskell, i.e trace the

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.