Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2008-05-19 (8 years ago) ![]() | ![]() ![]() ![]() ![]() | Total: 1,819 | All time: 2,090 This week: 881![]() |
Version | License | PHP version | Categories | |||
qxml 1.0 | MIT/X Consortium ... | 5.0 | XML, PHP 5 |
Description | Author | |
This class can be used to generate XML documents from arrays and also parse XML documents to build arrays. Recommendations What is the best PHP array to xml class? |
Motivation: I wrote QXml because I didn't found a php class that was able to handle array to xml conversion sufficiently. QXML is able to preserve attributes and does a lot more. An array structure is geared to the structure of a simple xml object. SimpleXMLElement attributes are printed out (via print_r()-method) like the following: [@attributes] Analogous to this convention you have to declare a nested array by setting its name to @attributes: array ( "@attributes" => array("id" => "myID") "@textNode" => "MyTextNode Data" ); If you declare a nested array with @textNode as key, then a CDDATE escaped text node will be created. Otherwise new elements will be created. QSet is my favorite array helper class that allows array handling with ease. I adopted it from CakePHP. I renamed it, reconditioned it a bit and made some useful enhancements. QSet and QXML are working together. It is a strong team. It allows e.g. following: ARRAY to XML Conversion XML to Array Conversion XML to Object Conversion Array to Object Conversion (vice versa) By including the vendor classes Services_JSON from PEAR and the IBM xml2json class you can do this additionally: XML to JSON Conversion Array to JSON Conversion and so on. The other classes are for now just example classes. The QReflection class is an extraction from another project where i use it for documentary demands and purposes. I hope you enjoy this class as i do. best regards Thomas Schäfer |
![]() |
File | Role | Description |
---|---|---|
![]() ![]() |
Aux. | data file using complex node array |
![]() ![]() |
Data | Transform DB-Designer 4 to Symfony Schema |
![]() ![]() |
Data | Demo Bookshop XML |
![]() ![]() |
Data | XSD file adopted from elsewhere.org |
![]() ![]() |
Data | Sample XML for FusionChart Sample |
![]() |
Class | Service Class From PEAR |
![]() ![]() |
Data | Data File for sample2 |
![]() |
Class | DBDesigner -> Propel -> Doctrine Conversion |
![]() |
Class | Convert GoogleMap Coordinates to GPS (adopted from JS at elsewhere.org) |
![]() |
Class | Reflection Class |
![]() |
Class | Array Class adopted from CakePHP |
![]() |
Class | XSL Transform class |
![]() |
Class | Sample Class for showing how to convert arrays |
![]() |
Class | QXML Class |
![]() ![]() |
Doc. | readme |
![]() ![]() |
Data | Sample XML for FusionChart Sample |
![]() ![]() |
Data | Sample XSL for FusionChart Sample |
![]() ![]() |
Example | Sample File |
![]() ![]() |
Example | Sample File |
![]() ![]() |
Example | Sample File: XML Output from Node for Flash XML |
![]() ![]() |
Example | Showing how to extend xml for FusionChart (XSL,XML) |
![]() ![]() |
Example | Sample: Get IP-Info, convert to XML, convert to object and work on it |
![]() ![]() |
Output | IP-Info to XML |
![]() ![]() |
Example | convert Array to Xml to JSON |
![]() ![]() |
Example | Sample Atom Feed |
![]() ![]() |
Example | Transform Bookshop XML to Symfony Schema |
![]() ![]() |
Example | Convert a DB Designer Scheme to Doctrine YML Scheme |
![]() ![]() |
Example | Sample OO Feed Classes |
![]() ![]() |
Example | GPX XML from Google Routes |
![]() ![]() |
Example | Sample OPML Feed |
![]() ![]() |
Example | Reflect a class and transform to xml; could be used for documentation |
![]() ![]() |
Example | Sample RSS Feed |
![]() ![]() |
Aux. | SPYC - A Simple PHP YAML Class |
![]() |
Class | Service Class From IBM |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.