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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

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

Post 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.
Post Reply