PDA

View Full Version : Parsing xml with php - where to start?


mouse
05-17-2003, 06:56 PM
Hi there,

I want to parse an xml page. I've visited the manual's page on this (as linked below) but I'm confused and don't know where to start. :(

http://www.php.net/manual/en/ref.xml.php

Um, could anyone help, ie post simple example or tell me where to start with this. The page I want to parse is quite simple, just <blah>info</blah> like... Obviously I want to put the content of each tag into a variable, like $blah = "info";

Thanks :( :thumbsup:

ChingKwan
05-18-2003, 07:37 AM
This is an example.My English is not very good.So I can't explain more for you.sorry!:)
Please download the files here:
http://www.showtop.net/temp/xml.rar

brothercake
05-19-2003, 11:12 AM
You could try http://www.zend.com/zend/art/parsing.php

I found that link in the notes at the bottom of the documentation - most of what you need to know is in there.