Zen API

- Home
- Topics
- Types
- Files

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

  xml | XML document.
  parent | Parent node.
  path | Path relative to the parent node.
  item | Destination for the item handle.

Returns
  Operation status.