Home arrow XML arrow Page 6 - Using PHP with XML (part 2)

...And Links - XML

PHP offers two methods of parsing an XML document. You've already seen how SAX works; in this article, find out how to use PHP's DOM functions to traverse an XML tree, and also learn about important differences between the two approaches.

TABLE OF CONTENTS:
  1. Using PHP with XML (part 2)
  2. Meet Joe Cool
  3. Building A Library
  4. Anyone For Chicken?
  5. Conclusions...
  6. ...And Links
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 3
June 20, 2001

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
That just about concludes this little tour of parsing XML data with PHP. I've tried to keep it as simple as possible, and there are numerous aspects of XML I haven't covered here. If you're interested in learning more about XML and XSL, you should visit the following links:

You can read more about the DOM, and its different incarnations, at:

The W3C's DOM specification, at http://www.w3.org/DOM/

The PHP manual pages, with user comments, are a great online resource, and you'll often find answers to common problems there. Even if you don't, they're well worth bookmarking:

PHP's DOM XML functions, at http://www.php.net/manual/en/ref.domxml.php

PHP's XML parsing functions, at http://www.php.net/manual/en/ref.xml.php

A number of developers have built and released free PHP classes to handle XML data - if you're ever on a tight deadline, using these classes might save you some development time.

And that's just about all for the moment. I hope you found this interesting, and that it helped to make the road ahead a little clearer. If you'd like to know more about PHP and XML, write in and tell me what you'd like to read about...and, until next time, stay healthy!

 
 
>>> More XML Articles          >>> More By icarus, (c) Melonfire
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

XML ARTICLES

- Google Docs and Xpath Data Functions
- Flex Array Collection Sort and Filtering
- The Flex Tree Control
- Flex List Controls
- Working with Flex and Datagrids
- How to Set Up Podcasting and Vodcasting
- Creating an RSS Reader Application
- Building an RSS File
- An Introduction to XUL Part 6
- An Introduction to XUL Part 5
- An Introduction to XUL Part 4
- An Introduction to XUL Part 3
- An Introduction to XUL Part 2
- An Introduction to XUL Part 1
- XML Matters: Practical XML Data Design and M...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: