PHP Classes

Saxophone: PHP stream handler to search XML with XPATH

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2015-01-28 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 299 All time: 6,717 This week: 1,189Up
Version License PHP version Categories  
saxophone 1.0.9GNU General Publi...5.0HTML, XML, Searching, Parsers
Description Author  

This class is a PHP stream handler to search XML with XPATH or tag name.

It allows opening a XML document using fopen('sax:...').

The class can parses the XML document and search it using XPATH expressions to match the document data that is returned when the stream reading functions are called.

Innovation Award  
PHP Programming Innovation award nominee
October 2013
Number 2

Prize: One downloadable copy of CodeLobster Professional
Some applications need to parse XML documents for extracting records of information that are stored in a certain structure.

This class can simplify the extraction of information from XML documents.

It uses the PHP streams support to open a virtual file with a name that includes the actual XML document file to parse, as well the format of the path of the XML elements to be extracting.

The XML elements path definition can be specified as a XPATH expression.

Using regular PHP file opening and reading functions it can return the XML elements that match the search expression.

Manuel Lemos
Picture of Juraj Puchký
Name: Juraj Puchký <contact>
Classes: 2 packages by
Country: Czech Republic Czech Republic
Age: 33
All time rank: 272530 in Czech Republic Czech Republic
Week rank: 1620 Up15 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 1x

  • Saxophone.png
  • Sample-1.01.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file README.TXT Doc. Singing song untill im on the orbit
Accessible without login Plain text file sample.php Example Saxophone sample
Accessible without login Plain text file sample.txt Output Saxophone sample results
Accessible without login Plain text file sample.xml Data Saxophone sample data
Plain text file Saxophone-1.0.9.php Class Saxophone 1.0.9 class file
Plain text file Saxophone-1.1.0.php Class New version support of parse method

 Version Control Unique User Downloads Download Rankings  
 0%Total:299All time:6,717
 This week:0This week:1,189Up