# WAAAHHH! Need PHP+XML help :(

**URL:** <https://forum.kirupa.com/t/waaahhh-need-php-xml-help/233030>\
**Category:** Uncategorized\
**Created:** [July 19, 2007, 3:29pm UTC](https://forum.kirupa.com/t/waaahhh-need-php-xml-help/233030 "2007-07-19T15:29:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ya3](https://avatars.discourse-cdn.com/v4/letter/y/e95f7d/32.png) [@ya3](https://forum.kirupa.com/u/ya3)\
**Post date:** [July 19, 2007, 3:29pm UTC](https://forum.kirupa.com/t/waaahhh-need-php-xml-help/233030/1 "2007-07-19T15:29:00Z")

</div>

I’ve looked at several tutorials including the Kirupa ones, but it’s still doing my head in, and I honestly don’t have that much time to spend learning this PHP+XML business for this particular job…

This is a sample of the XML I will be using:  
[http://www.xe.com/dfs/sample-usd.xml](http://www.xe.com/dfs/sample-usd.xml)

It contains exchange rates… They are contained within the \<currency\> tags. I basically just need to extract the \<csymbol\> and \<crate\> of a few different currencies (and subsequently dump them into a very simple MySQL db with two fields).

So… Say I needed the script to extract the exchange rates for GBP, NZD and CAD… Could someone please hold my hand and show me how to do it? 😛

**btw, I’m using PHP 4, so I can’t use any of those wonderful simplexml functions ☹**

Thanks in advance!!!
