PHP Classes

Object To XML: Generate XML from values of object variables

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-06-25 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,191 All time: 3,139 This week: 412Up
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.

Name: Jason Houle <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 2096273 in United States United States
Week rank: 680 Up80 in United States United States Up

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,139
This week:412Up

For more information send a message to info at phpclasses dot org.