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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:29:09+00:00 2026-06-06T03:29:09+00:00

<?xml version=1.0 encoding=utf-8 ?> <Database name=DB1> <Table name=Faculty> <Column>FID</Column> <Column>First Name</Column> <Column>Last Name</Column> <Column>DOB</Column>

  • 0
<?xml version="1.0" encoding="utf-8" ?>
<Database name="DB1">
   <Table name="Faculty">
    <Column>FID</Column>
    <Column>First Name</Column>
    <Column>Last Name</Column>
    <Column>DOB</Column>
    <Column>Phone No</Column>
    <Column>Full Address</Column>
    <Column>Salary</Column>
    <Column>Heights</Column>
</Table>
  <Table name="Title">
    <Column>TID</Column>
    <Column>Title</Column>
</Table>
</Database>

I want to get all child nodes on bases of ‘s attribute.. like if table name Title then xmlchildlist get TID, Title Nodes

  • 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-06T03:29:10+00:00Added an answer on June 6, 2026 at 3:29 am

    If you are confortable using LINQ, try this:

    var name = "Title";
    XDocument doc = XDocument.Load(path);
    var selectors = (from elements in doc.Elements("Database").Elements("Table")
                    where elements.Attribute("name").Value == name
                    select elements).FirstOrDefault();
    var list = selectors.Elements("Column").ToList();
    var id = list[0];
    var title = list[1];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file that looks like <?xml version='1.0' encoding='UTF-8'?> <root> <node name=foo1
<?xml version='1.0' encoding='utf-8' standalone='yes'?> <stock-items> <stock-item> <name>Loader 34</name> <sku>45GH6</sku> <vendor>HITINANY</vendor> <useage>Lifter 45 models B
I am using MySql database with JPA. my persistence.xml looks like <?xml version=1.0 encoding=UTF-8?>
View Database XML file: <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical android:background=@drawable/wood_bg >
Here's the XML: <?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <feed xmlns=http://www.w3.org/2005/Atom xmlns:dc=http://purl.org/dc/elements/1.1/> <title>Rated Images</title> <link
I am trying to parse the following XML with javascript: <?xml version='1.0' encoding='UTF-8'?> <ResultSet>
This is my xhtml code : <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC -//W3C//DTD
I have the following simplified XML: <?xml version="1.0" encoding="UTF-8" ?> <MATMAS05> <IDOC BEGIN="1"> <E1MARAM
I have the following simplified XML structure: <?xml version="1.0" encoding="UTF-8" ?> <INVOIC02> <IDOC BEGIN="1">
My Orginal XML Is <?xml version=1.0 encoding=UTF-8?> <testing> <MajorEvent> <Originator>xxxx/Originator> <Version>V1</Version> </MajorEvent> <Event Date=26-03-11_04:00:00:00

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.