Build XML file from class in PHP

Mati_Dkq

New Member
I'm wondering if anyone knows how to build an XML file, dynamically from a list of classes?The classes contains public variables, and look like this.\[code\]class node { public $elementname;}\[/code\]I do note that some of the classes are named the same as variables, and in this case, the node would be a subnode element of a node:\[code\]class data { public $dataaset;}class dataset { public $datasetint;}\[/code\]would be:\[code\] <data> <dataset>datasetint</dataset> </data>\[/code\]Maybe something in SimpleXML or something?
 
Back
Top