| Explanation | Check for the existence of child nodes. |
| Call format | var ret = node.HasChildNodes( ) |
| Return value | $TRUE if there are child nodes , $FALSE if not |
| Arguments | None |
| Exception | None |
| Example of use |
var domimpl = new XmlDOMImplementation;
var res = session.Get("/test/sample.xml");
var xmldoc = domimpl.Load(res);
var parent = xmldoc.DocumentElement;
if (parent.HasChildNodes()) {
var list = parent.ChildNodes;
for (var n in list) {
print(list.Item(n).NodeName, "\n");
}
}
|
| Related item | ChildNodes property |