Creating Nodes

When adding Nodes:

  1. Sibling nodes must have a unique name
  2. 'pcr:root' must be the root node
  3. All nodes, other than root, will be descendants of the 'pcr:root' node
<?php 
$node = $session->getRootNode();
$node = $node->addNode('users');
$node = $node->addNode('jsmith');

echo $node->getPath(); //outputs pcr:root/users/jsmith
?>