O'Reilly logo

XML Parsing with PHP by John M. Stokes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A: SimpleXML Function Reference

SimpleXML is an Object-Oriented library, so there are few procedural functions. As such, most method calls are to a SimpleXMLElement object.

Method signatures come from the PHP online manual at http://php.net/simplexml, but I have attempted to test each method and to fill in the gaps when the PHP online manual is incomplete or ambiguous. Please refer to the online manual for the most complete and up-to-date information.

Note that the iterative properties of SimpleXMLElement methods can prevent the returned object from being viewed with print_r(), var_dump() or anything else that can examine objects. Results may vary with different debuggers.

SimpleXMLElement Methods

__construct()

SimpleXMLElement ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required