// An invalid SimpleXMLElement can gum up the works with
// warnings if we call stuff children/attributes on it.
if (!
$var) { $o->size = null;
return;
} $x =
new SimpleXMLElementValue();
$x->
transplant($o);
$namespaces = \
array_merge([null
],
$var->
getDocNamespaces());
// Attributes
$a =
new Representation('Attributes'
);
$base_obj =
new Value();
$base_obj->depth =
$x->depth;
if ($x->access_path
) { $base_obj->access_path = '(string) '.
$x->access_path;
}