Page 1 of 1

[SOLVED]Can you convert data in a Struct into an XML string?

Posted: Thu Aug 05, 2004 12:39 am
by myleow

Code: Select all

<?php
xml_parse_into_struct($xml_parser, $xml_string, $index, $value);
?>
The function above parse an XML string into 2 Struct Array.

I would like to know if there is a way to convert the 2 Struct Array back into an XML string.

Thank you in advance

Regards
Mian

Solution: Construct object from the Array and then construct the XML from the Object.