PHP Classes

Generic XML parser class: Arbitrary XML parser.

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 41,009 All time: 8 This week: 60Down
Version License PHP version Categories
xmlparser 1.0.3BSD 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

Picture of Manuel Lemos
  Performance   Level  
Name: Manuel Lemos <contact>
Classes: 45 packages by
Country: Portugal Portugal

Recommendations

Extract the Token generated in the soap response
I need to parse the token and store in a variable

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

Screenshots (1)  
  • xmlparser.gif
  Files folder image Files (7)  
File Role Description
Accessible without login Plain text file classmaps.php Aux. Define the array of the package class files
Accessible without login Plain text file example.xml Data XML example file for the test script
Accessible without login Plain text file extract_valid_xml_data.php Example Example of how to validate and extract data from a XML document
Accessible without login Plain text file test_xml_parser.php Example Class test script
Plain text file xml_parser.php Class XML parser class
Accessible without login HTML file xml_parser_class.html Doc. Class documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 71%7
Total:41,009
This week:0
All time:8
This week:60Down
User Ratings User Comments (3)
 All time
Utility:80%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:85%StarStarStarStarStar
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:846
 
Maybe an update 6 yrs is too much
3 years ago (Mario Carrocera)
72%StarStarStarStar
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar
Nice thing.
16 years ago (Krachun Misha)
67%StarStarStarStar