This appears to correctly handle a root node and its children.