This is my XML code:

<?xml version="1.0" encoding="ISO-8859-1"?>
  <library>
    <episodes>
      <episode>
        <eptitle>Police Stop!</eptitle>
        <epno></epno>
        <desc>Dangerous driving caught on camera.</desc>
        </episode>
      <episode>
        <eptitle>Police Stop! 2</eptitle>
        <epno></epno>
        <desc>Dangerous driving caught on camera. Including a pursuit through the Midlands.</desc>
        </episode>
      <episode>
        <eptitle>Police Stop! 3</eptitle>
        <epno></epno>
        <desc>Featuring footage of dangerous driving on our roads, including a Mercedes SL stolen in California, a car in Australia that's almost lethal, and elderly drivers losing control, plus hand-held camera footage of a trucker on the loose.</desc>
        </episode>
    </episodes>
</library>

How do I get it to work in PHP so I can dynamically update it, as it's part of a website which will rely on dynamically-updated XML?

Consider it a mini-database of sorts.

Hi,

You need XML parsing for same.this is the method by which you can parse XML data and convert it to PHP variable and after that you can use it like normal PHP code.

see this reference link :http://www.softarea51.com/tutorials/parse_rss_with_php.html

It can be useful to you ..

Best luck...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.