PHP Classes

Object To XML: Generate XML from values of object variables

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 39%Total: 1,195 All time: 3,174 This week: 206Up
Version License PHP version Categories
objecttoxml 1.0GNU General Publi...5XML, PHP 5, Data types
Description 

Author

This class can be used to generate XML documents from values of object variables.

It traverses the public variables of a given object and generates a XML document with the variable names as tags and the variable values as tag values.

Object and array values are converted into nested tag values.

The root tag of the generated document is the class name.

The resulting XML document can be returned as a string.

Picture of Jason Houle
Name: Jason Houle <contact>
Classes: 1 package by
Country: United States United States

  Files folder image Files (1)  
File Role Description
Plain text file ObjectToXML.php Class Convert PHP objects to XML

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 Unique User Downloads Download Rankings  
 0%
Total:1,195
This week:0
All time:3,174
This week:206Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:39%StarStar
Rank:3881