SimpleXML explained

SimpleXML is a PHP extension that allows users to easily[1] [2] manipulate/use XML data. It was introduced in PHP 5 as an object oriented approach to the XML DOM providing an object that can be processed with normal property selectors and array iterators.[3] [4] It represents an easy way of getting an element's attributes and textual content if you know the XML document's structure or layout.[5]

Compared to DOM or the Expat parser, SimpleXML takes a fewer lines of code to read text data from an element.[6] [7]

Functions

Error handling

It is possible to suppress all XML errors when loading the document and then iterate over the errors.[9]

External links

Notes and References

  1. Web site: Introducing SimpleXML in PHP 5 . 12 June 2006 .
  2. Web site: PHP: SimpleXML - Manual .
  3. Book: Pro PHP XML and Web Services. 9781430201397. Richards. Robert. 2007-02-05. Apress .
  4. http://www.php.net/manual/en/intro.simplexml.php PHP.net SimpleXML intro
  5. http://onlamp.com/pub/a/php/2004/01/15/simplexml.html onlamp introduction to SimpleXML
  6. https://www.w3schools.com/PHP/php_xml_simplexml_read.asp w3schools SimpleXML Tutorial
  7. Web site: PHP Master | Parsing XML with SimpleXML . 11 February 2013 .
  8. Web site: PHP: SimpleXMLElement::addAttribute - Manual .
  9. Web site: PHP: Dealing with XML errors - Manual .