Test the existence of an XML object
exists = xmlIsValidObject(obj)
:
When a XML document has been deleted all the attached objects are destroyed, but on the Scilab side the objects are still alive. So this function is useful to know if an object on the Scilab side is valid or not.
doc = `xmlRead`_("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml");
r = doc.root
// must return %T
xmlIsValidObject(r)
// We delete the doc
xmlDelete(doc);
// must return [%F %F]
xmlIsValidObject(["doc" "r"])
Version Description 5.4.0 XML module introduced. .. _XML Objects: XMLObjects.html .. _xmlDelete: xmlDelete.html