</root>
');
-echo $root->reserved->child;
+echo $root->children('reserved')->child;
echo "\n---Done---\n";
?>
--EXPECT--
$root->register_ns('myns', 'reserved-ns');
-echo $root->myns->child;
-echo $root->reserved->child;
+echo $root->children('myns')->child;
+echo $root->children('reserved')->child;
echo "\n---Done---\n";
?>
--EXPECT--
</root>
');
-echo $root->child['reserved:attribute'];
+echo $root->child->attributes('reserved')['attribute'];
echo "\n---Done---\n";
?>
--EXPECT--
$root->register_ns('myns', 'reserved-ns');
-echo $root->child['reserved:attribute'];
-echo $root->child['myns:attribute'];
+echo $root->child->attributes('reserved')['attribute'];
+echo $root->child->attributes('myns')['attribute'];
echo "\n---Done---\n";
?>
--EXPECT--
</root>
');
-echo $root->child['reserved:attribute'];
+echo $root->child->attributes('reserved')['attribute'];
echo "\n";
-echo $root->child['special:attribute'];
+echo $root->child->attributes('special')['attribute'];
foreach ($root->child['attribute'] as $attr) {
echo "$attr\n";
}
</root>
');
-echo $root->reserved->child;
+echo $root->children('reserved')->child;
echo "\n";
-echo $root->special->child;
+echo $root->children('special')->child;
foreach ($root->child as $child) {
echo "$child\n";
}