Login   Register  
PHP Classes
elePHPant
Icontem

QXML: XML <> Array (preserve attrib.), JSON, etc.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Tom Schaefer
Name: Tom Schaefer is available for providing paid consulting. Contact Tom Schaefer .
Packages: 39 Browse all classes by Tom Schaefer Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: ???
All time rank: 1119 in Germany Germany
Week rank: 113 Down4 in Germany Germany Up
Innovation award
Innovation award
Nominee: 9x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz  
This class can be used to generate XML documents from arrays and also parse XML documents to build arrays.

It can work with an XML's textNodes and attributes, stores them into an array and generates an XML document.

This class can also do the opposite, i.e. take an XML document file or string and parse it, and then build an array.

It is quite simple in handling. Just look at the sample files.

Feature List:
- Array to XML Conversion while preserving attributes
- XML to Array Conversion
- XML to SimpleXMLElement Object
- SimpleXMLElement Object to XML
- XML to JSON
- Array to JSON

Other Scripts
- Schema Transformation for usage with Propel or Doctrine ORM
- Google Routes to GPX
- PHP Classes Reflection to XML

to be rewritten and provided later this year:
- QQuery (originally written as a set of classes for usage within symfony framework )

If you have suggestions for making it better then let me know.

  Classes of Tom Schaefer  >  QXML  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: QXML
Base name: qxml
Description: XML <> Array (preserve attrib.), JSON, etc.
Version: 1.0
PHP version: 5.0
License: MIT/X Consortium License
All time users: 1732 users
All time rank: 2074
Week users: 2 users
Week rank: 1191 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image XML XML parsing and generation View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Perfect (100.0%) Good (91.7%) Sufficient (66.7%) Good (83.3%) - - Sufficient (74.2%) 86
Month: Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file data.php Aux. data file using complex node array
Accessible without login Plain text file dbd2propel.xsl Data Transform DB-Designer 4 to Symfony Schema
Accessible without login Plain text file demo_bookshop.xml Data Demo Bookshop XML
Accessible without login Plain text file gpx.xsd Data XSD file adopted from elsewhere.org
Accessible without login Plain text file green1.xsl Data Sample XML for FusionChart Sample
Plain text file JSON.class.php Class Service Class From PEAR
Accessible without login Plain text file menu.xml Data Data File for sample2
Plain text file Propel2Doctrine.class.php Class DBDesigner -> Propel -> Doctrine Conversion
Plain text file QGoogleMapToGPX Class Convert GoogleMap Coordinates to GPS (adopted from JS at elsewhere.org)
Plain text file QReflection.class.php Class Reflection Class
Plain text file QSet.class.php Class Array Class adopted from CakePHP
Plain text file QTransform.class.php Class XSL Transform class
Plain text file QWhoIsIp.class.php Class Sample Class for showing how to convert arrays
Plain text file QXml.class.php Class QXML Class
Accessible without login Plain text file readme.txt Doc. readme
Accessible without login Plain text file residential.xml Data Sample XML for FusionChart Sample
Accessible without login Plain text file residential.xsl Data Sample XSL for FusionChart Sample
Accessible without login Plain text file sample.php Example Sample File
Accessible without login Plain text file sample2.php Example Sample File
Accessible without login Plain text file sample3.php Example Sample File: XML Output from Node for Flash XML
Accessible without login Plain text file sample3b.php Example Showing how to extend xml for FusionChart (XSL,XML)
Accessible without login Plain text file sample4.php Example Sample: Get IP-Info, convert to XML, convert to object and work on it
Accessible without login Plain text file sample5.php Output IP-Info to XML
Accessible without login Plain text file sample6.php Example convert Array to Xml to JSON
Accessible without login Plain text file sample_atom.php Example Sample Atom Feed
Accessible without login Plain text file sample_bookshop.php Example Transform Bookshop XML to Symfony Schema
Accessible without login Plain text file sample_doctrine.php Example Convert a DB Designer Scheme to Doctrine YML Scheme
Accessible without login Plain text file sample_feeds_oo.php Example Sample OO Feed Classes
Accessible without login Plain text file sample_googlegpx.php Example GPX XML from Google Routes
Accessible without login Plain text file sample_opml.php Example Sample OPML Feed
Accessible without login Plain text file sample_reflect.php Example Reflect a class and transform to xml; could be used for documentation
Accessible without login Plain text file sample_rss.php Example Sample RSS Feed
Accessible without login Plain text file Spyc.class.php Aux. SPYC - A Simple PHP YAML Class
Plain text file XMLJSON.class.php Class Service Class From IBM

Download Download all files: qxml.tar.gz qxml.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.