Is PHP ready for XML?
| From: | Erick Papadakis | Date: | Mon, 05 Mar 2001 11:50:10 +0000 |
| Subject: | Is PHP ready for XML? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-42603@lists.php.net to get a copy of this message | ||
I am beginning on how to work with xml, but i need some prelim help. let us
say i have an XML file as follows:
---------------
<Book>
<Author>Jonathan Swift</Author>
<Name>Gulliver's Travels</Name>
</Book>
<Book>
<Author>Agatha Christie</Author>
<Name>Murder on 57</Name>
</Book>
---------------
I want to know if PHP supports the following to do with the above file:
- How to list the above information on a HTML page (I mean
using PHP of course) - in tables.Which functions should
I use, EXPAT functions or DOM functions? (Whats the
difference?)
- What if I need to search through a XML file? How would
I go about doing it - recommended way?
- What if I needed to add a new tag to all the BOOKS in the
XML file. For instance,
<Isbn>2390737-380973</Isbn>
How would I do this for all the books in my XML file?
I'd appreciate any help! Thanks!
Erick.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01