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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:18:27+00:00 2026-05-12T08:18:27+00:00

I was wondering if anyone knows how to get information from an XML file

  • 0

I was wondering if anyone knows how to get information from an XML file and turn it into a form select/list using php.. This is the XML schema:

<?xml version="1.0" encoding="utf-8"?>
<expose version="2.1">
  <collection _mngid="1">
    <collection _mngid="1">
      <title>Heatherton Football Club</title>
      <thumb>
        <url>albthumbs/albth_1.jpg</url>
      </thumb>
      <collection _mngid="8">
        <title>2009 Season</title>
        <thumb>
          <url>albthumbs/albth_8.jpg</url>
        </thumb>
        <album _mngid="2">
          <title>Round 17</title>
          <contentxmlurl>alb_2.xml</contentxmlurl>
          <contentnumber>20</contentnumber>
          <thumb>
            <url>albthumbs/albth_2.jpg</url>
          </thumb>
        </album>
      </collection>
      <album _mngid="3">
        <title>Auskick</title>
        <contentxmlurl>alb_3.xml</contentxmlurl>
        <contentnumber>35</contentnumber>
        <thumb>
          <url>albthumbs/albth_3.jpg</url>
        </thumb>
      </album>
    </collection>
    <collection _mngid="4">
      <title>Events Gallery</title>
      <thumb>
        <url>albthumbs/albth_4.jpg</url>
      </thumb>
      <album _mngid="5">
        <title>80's Night</title>
        <contentxmlurl>alb_5.xml</contentxmlurl>
        <contentnumber>43</contentnumber>
        <thumb>
          <url>albthumbs/albth_5.jpg</url>
        </thumb>
      </album>
    </collection>
    <collection _mngid="6">
      <title>Match Highlights</title>
      <thumb>
        <url>albthumbs/albth_6.jpg</url>
      </thumb>
      <album _mngid="7">
        <title>Match Highlights</title>
        <contentxmlurl>alb_7.xml</contentxmlurl>
        <contentnumber>10</contentnumber>
        <thumb>
          <url>albthumbs/albth_7.jpg</url>
        </thumb>
      </album>
    </collection>
  </collection>
</expose>

I need the “contentnumber” number and the “title” to create a form select/list like this:

<select name="select" id="select">
  <option value="20">Round 17</option>
  <option value="35">Auskick</option>
  <option value="43">80's Night</option>
  <option value="10">Match Highlights</option>
</select>

Is this even possible? I just need the ones with a “contentnumber” (and of course it’s “title”) It needs to be dynamically pulled in via php 🙂 Can anyone help me out?

  • 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-12T08:18:27+00:00Added an answer on May 12, 2026 at 8:18 am

    You need a XML parser (SimpleXML) that will parse this XML to something PHP can work with (an object in case of SimpleXML) that you can use to dynamically create your select box.

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

Sidebar

Related Questions

Just wondering whether anyone knows how to get blogger labels into alt tags in
I was wondering if anyone knows how to get formatted or styled codes from
I know I can get answers here but I was wondering if anyone knows
i was just wondering if anyone knows how to select rows where a specified
I am just wondering whether anyone knows where I can get a compiled version
Was wondering if anyone knows how to get the historical data for any Facebook
I was wondering if anyone knows how to get a % of say dctest/In
So I am making an application using cakePHP. I am wondering if anyone knows
I was wondering whether anyone knows definitively if LINQ to SQL has the capability
I was wondering if anyone knows more about the inner workings of the Google

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.