Advanced XML Advanced XML with PHP 5 with PHP 5

Advanced XML with PHP 5 with March 14, 2007 Robert Richards Agenda Agenda Introduction to Terms and Concepts Introduction Libxml Libxml SimpleXML SimpleXML SDO SDO DOM DOM XMLReader XMLReader XMLWriter XMLWriter XSL XSL XML Namespaces XML An XML Namespace is a collection of names identified by a URI. identified They are applicable to elements and attributes. They Namespaces may or may not be associated with a prefix. prefix. xmlns:rob=\"urn:rob\" xmlns:rob=\"urn:rob\" xmlns=http://www.example.com/rob xmlns= Attributes never reside within a default namespace. Attributes It is illegal to have two attributes with the same localname and same namespace on the same element. localname XML Namespace Example XML John Smith 123 Here Jane Doe 456 Somewhere else XML Namespace Example XML John Smith 123 Here Jane Doe 456 Somewhere else Illegal Namespace Usage Illegal xmlns:ship=\"urn:order\" ship:type=\"fed_ex\" John Smith order:type=\"legal\">John Reserved Namespaces and Prefixes Prefixes The prefix xml is bound to xml http://www.w3.org/XML/1998/namespace. http://www.w3.org/XML/1998/namespace The prefix xmlns is bound to xmlns http://www.w3.org/2000/xmlns/. http://www.w3.org/2000/xmlns/ Prefixes should also not begin with the characters xml. xml Schemas and Validation Schemas Validation insures an XML document conforms to a set of defined rules. conforms Multiple mechanisms exist to write document rule sets: rule Document Type Definition (DTD)

Advanced XML Advanced XML with PHP 5 with PHP 5

Category: PHP Tutorials
Source: cdatazone.org
Download: 0 | Filesize:

Download PDFboom bookmark and share

Related Post