Translate XML

Ok I am a student and my instructor keeps giving us projects dealing with PHP coding even though only half our class has had a PHP
server side scripting class. The project he just gave us I thought would be simple, but I’m still struggling to find online the proper
scripting to get my php file to do what I need it to do.

Requirements :
Create a simple html page that contains a text area with a submit buton - DONE
The submit button will call a php page and display the text typed in the text area - DONE
Allow users to enter XML script into the text area and when submit button is clicked the php page will display the row names and values of the XML without the XML tags, Example - Text Area Entry Would Look Like -

<fname>James</fname><lname>Mays</lname>

Output Would Look Like -
fname James
lname Mays
This is the part I’m struggling with, I don’t know how to tell the php to not display the XML tags - NOT DONE

If this helps here is what code I do have, HTML Page

[code]

Text Area:

[/code] PHP Code [php]

Text Output: <?php echo $_POST["xmltags"]; ?>!

[/php] Thank You for any and all help
Sponsor our Newsletter | Privacy Policy | Terms of Service