Jump to content

manipulating XML data with PHP without using DOM


winey

Recommended Posts

Hi i want some help in manipulating XML data like search, append and delete records from XML file using php with out using DOM parser but only by using Xpat parser objects,

 

my xml file is like this student.xml

<student>

<student_id email = "[email protected]">

<lastname> nnnn </lastname>

<firstname> aaa </firstname>

<address> nnnn </address>

</student_id>

 

<student_id email = "[email protected]" />

<lastname> rrrr </lastname>

<firstname> vvvvv </firstname>

<address> sssssss </address>

</student_id>

<student_id email = "[email protected]" />

<lastname> kkkkkk </lastname>

<firstname> sssssss </firstname>

<address> bbbbbbb </address>

<student_id>

 

</student>

 

i need to develop a php program to parse these XML elements and attributes to display them in a table on a webpage

be able to search with lastname or firstname

be able to insert email,lastname,firstname and address, which should be appended into the xml file.

 

pls get back to me ASAP

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.