0

I have a large xml file which im getting from air search api now i just wanted to get data from it and show it in format like (TagName : tagdata or innerhtml)

<tr>
 <td> TagName :   </td>
 <td>Tag Value or its InnerHTML</td>
</tr>

i want to get all data into tabular form also i want whole data as while navigating i found a lot of script which does this but shows only first set of data.

link to file is http://bp.elxer.com/air_search.xml

Dimitre Novatchev
  • 240,661
  • 26
  • 293
  • 431
  • 1
    possible duplicate of [How to parse and process HTML with PHP?](http://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php) – Gordon Feb 15 '12 at 11:02
  • possible duplicate [A simple program to crud xml](http://stackoverflow.com/questions/4906073/a-simple-program-to-crud-node-and-node-values-of-xml-file) – Gordon Feb 15 '12 at 11:03

1 Answers1

0

You can use php simplexml_load_file

When you get the result, its easy to make whatever you want with the data.

mlinuxgada
  • 580
  • 3
  • 7
  • i have tried it but i m not satisfied can you give me a detail answer width example.... – Kishan Sharma Feb 15 '12 at 12:36
  • give me the static view, the way you want the html code look, I will try to implement it with xml obj properties. – mlinuxgada Feb 15 '12 at 13:05
  • sir i just want all data coming from specified file in format like below : [link](http://elxer.com/koi.png) hope you understood this time. also remaining data i want to store in array and i just want that to show them when user clicks on details or readmore – Kishan Sharma Feb 16 '12 at 07:52
  • I think I gave you the solution. You want from me to do all your work for you? – mlinuxgada Feb 16 '12 at 09:24
  • it was not helpful i yet implemented by my own thanks i was asking for help though thanks you can have a glimpse at [link](http://bp.elxer.com/air_booking_admin.php) – Kishan Sharma Feb 17 '12 at 12:38