crear xml con namespace
nction createXML($root, $namespace, $child, $attributes) { $xml = new SimpleXMLElement('<' . $root . '></' . $root . '>'); $xml->addAttribute('xmlns', $namespace); $xml->addChild($child, $attributes); return $xml; } function createXMLFromArray(