PHP Classes

File: usage_examples

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 6 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