PHP Classes

File: usage_examples

Recommend this page to a friend!
  Classes of Nicola Antonio Filannino  >  XML nodes parser  >  usage_examples  >  Download  
File: usage_examples
Role: Example script
Content type: text/plain
Description: examples
Class: XML nodes parser
Parse a XML document and search its structure
Author: By
Last change: more clear example details
Date: 12 years ago
Size: 568 bytes


Class file image Download


// declaring a new XML object
$xml=new Xml('test.xml');
// getting all nodes which name is 'book'
// getting all nodes having property name='author'
// printing out the nodes-list object
// retrieving the first item from the list
// concatenating node requests
    // here we get the 2nd child of 1st child of first node of the list


For more information send a message to info at phpclasses dot org.