Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kXml_EnsureChildExists ( kXml  xml,
kXmlItem  parent,
const kChar path,
kXmlItem item 
)

Ensures that a child node exists at the specified path.

This method creates any missing nodes that are necessary for the path to be complete. If a child already exists at the specified path, the existing child is returned.

Parameters
xmlXML document.
parentParent node.
pathPath relative to the parent node.
itemDestination for the item handle.
Returns
Operation status.