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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:08:05+00:00 2026-05-12T17:08:05+00:00

I hope this question (or one similar) hasn’t been asked before. Sincere apologies if

  • 0

I hope this question (or one similar) hasn’t been asked before. Sincere apologies if it has.


From an XMLHttpRequest I’m receiving an XML file like the one shown below:

<?xml version="1.0"?>
<projects>
<project>
    <department>Engineering</department>
    <primary>TNT</primary>
    <secondary>Lighting</secondary>
    <name>Project Ipsum</name>
    <description>Lorem</description>
</project>

<project>
    <department>Engineering</department>
    <primary>Heating</primary>
    <secondary>Fabric</secondary>
    <name>Project random</name>
    <description>This project is a load of</description>
</project>
.
.
.
.
</projects>

Esentially I’m trying to “query” the XML file and pull out department, primary, secondary, name, and description for any project where (for instance) primary or secondary were TNT.

Any suggestions would be greatly appreciated.
Thanks again.

  • 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-12T17:08:06+00:00Added an answer on May 12, 2026 at 5:08 pm

    The XMLHttpRequest object has a responseXML attribute which contains the parsed XML document. You can use standard DOM methods on it.

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

Sidebar

Related Questions

I'm sure some variation of this question has been asked before but all other,
I already asked a similar question but this one is a bit different/specific: I'm
I know similar question was answered a lot times before, but I hope this
I know this is a similar question to one already asked, but I was
I hope it's the heat, this is the second question today and it's one
I hope this question is not 'controversial' - I'm just basically asking - has
This is an elementary question, which I hope has an easier solution that the
I asked an earlier question similar to this (with no responses), but I know
Hope this question is not stupid since I am an amateur web designer. I
I hope this question isn't too general. Well, the situation is that I am

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.