function toLegacyXML($v, $ns = '')
 {
     ARC2::inc('LegacyXMLSerializer');
     if (!$ns) {
         $ns = isset($this->a['ns']) ? $this->a['ns'] : array();
     }
     $ser = new ARC2_LegacyXMLSerializer(array_merge($this->a, array('ns' => $ns)), $this);
     return $ser->getSerializedArray($v);
 }
 function toLegacyXML($v, $ns = '')
 {
     ARC2::inc('LegacyXMLSerializer');
     $conf = array('ns' => $ns ? $ns : isset($this->a['ns']) ? $this->a['ns'] : array());
     $ser = new ARC2_LegacyXMLSerializer($conf, $this);
     return $ser->getSerializedArray($v);
 }