PHP Classes

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

Recommend this page to a friend!
  All requests RSS feed  >  Extract XML tag values  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Extract XML tag values

Edit

Picture of Mas Maryono by Mas Maryono - 10 years ago (2015-02-22)

Parse a XML document and extract the values

This request is clear and relevant.
This request is not clear or is not relevant.

+3

I need to parse a XML document and extract the tag values.

Ask clarification

2 Recommendations

XML Dictionary: Retrieve text translations from XML files

This package can retrieve text translations from XML files.

It can parse a given XML file and extract translations of text for one or more languages.

The class can return the translations of individual text strings for a specific supported language or for the default language.

It can also replace some marks in the text with some formatting HTML tags like bold, italic, underscore and line break.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Ricky Scotti by Ricky Scotti package author package author Reputation 75 - 9 years ago (2015-08-03) Comment

It's a simple XML extraction


Generic XML parser class: Arbitrary XML parser.

- 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
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Manuel Lemos by Manuel Lemos package author package author Reputation 26695 - 10 years ago (2015-02-24) Comment

This XML parser class can parse a XML document just with a single function call.

You just pass an array with the definition of the tags and types that you expect and it will return the whole parsed document in a single variable.

Take a look at this tutorial article that explains better how it works. 


Recommend package
: 
: