Source for file serializeWithNamespace.php
Documentation is available at serializeWithNamespace.php
* Example that creates tags with a namespace
* @author Stephan Schmidt <schst@php.net>
require_once 'XML/Serializer.php';
'defaultTagName' => 'item',
$foo->value = 'My value';
$foo->obj = new stdClass;
$xml = $serializer->getSerializedData ();
$serializer->setOption ('namespace', array ('bar', 'http://pear.php.net/package/XML_Serializer'));
$xml = $serializer->getSerializedData ();
Documentation generated on Mon, 11 Mar 2019 15:41:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|