Generic XML parser class: Arbitrary XML parser.

Recommend this page to a friend!
  Info   Screenshots   View files (5)   Download .zip   Reputation   Support forum (10)   Blog (1)    
Ratings Unique User Downloads Download Rankings
62%Total: 40,794 All time: 8 This week: 251
Version License PHP version Categories
xmlparser 1.0.1BSD License3XML
Description Author

- Parses arbitrary XML input and builds an array with the structure of all tag and data elements.
- It can validate and extract data from a whole XML document with just a single call. It supports validationg common tag value data types and can perform custom validations using a subclass.
- Optionally, keeps track of the positions of each element to allow the determination of the exact location of elements that may be contextually in error.
- Supports parsed file cache to minimize the overhead of parsing the same file repeatdly.
- Optimized parsing of simplified XML (SML) formats ignoring the tag attributes.
- Validate and extract data from a whole XML document with single function call

Recommendations

HTML forms from XML document with PHP
I need to parse XML document using PHP parse functions

Parse XML
Parse XML document

What is the best PHP RSS parser class?
Parse a RSS XML feed

Extract XML tag values
Parse a XML document and extract the values

Parse Amazon XML file
I am unable to get Amazon XML file to parse in PHP

Looking for an ONIX feed parser and generator
Parsing and/or generating ONIX

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos is available for providing paid consulting. Contact Manuel Lemos .
Classes: 41 packages by
Country: Portugal Portugal
Age: 51
All time rank: 1
Week rank: 3 1 in Portugal Portugal

Screenshots  
  • xmlparser.gif
  Files  
File Role Description
example.xml Data XML example file for the test script
extract_valid_xml_data.php Example Example of how to validate and extract data from a XML document
test_xml_parser.php Example Class test script
xml_parser.php Class XML parser class
xml_parser_class.html Doc. Class documentation

 Version Control Reuses Unique User Downloads Download Rankings  
 66%5
Total:40,794
This week:0
All time:8
This week:251
User Ratings User Comments (2)
 All time
Utility:79%
Consistency:75%
Documentation:84%
Examples:70%
Tests:-
Videos:-
Overall:62%
Rank:1068
 
Excellent
11 years ago (kishore kumar)
70%
Nice thing.
12 years ago (Krachun Misha)
67%
 

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