Index: branches/RC/core/units/general/xml_helper.php =================================================================== diff -u -r9313 -r9639 --- branches/RC/core/units/general/xml_helper.php (.../xml_helper.php) (revision 9313) +++ branches/RC/core/units/general/xml_helper.php (.../xml_helper.php) (revision 9639) @@ -201,6 +201,29 @@ return $false; } } + /** + * Reconstructs XML of the node and subnodes + * + */ + function GetXML() + { + $xml = '<'.$this->Name; + if (count($this->Attributes)) { + $xml .= ' '; + $att_contents = array(); + foreach ($this->Attributes as $name => $value) { + $att_contents[] = $name.'="'.$value.'"'; + } + $xml .= implode(' ', $att_contents); + } + $xml .= '>'.$this->Data; + foreach ($this->Children as $node) + { + $xml .= $node->GetXML(); + } + $xml .= 'Name.'>'; + return $xml; + } } ?> \ No newline at end of file