Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
However, this page did not exist in the previous stable version.

Ajuda do Scilab >> XML Management > xmlIsValidObject


Test the existence of a XML object

Calling Sequence

exists = xmlIsValidObject(obj)



a XML object or a matrix of strings containing the variables names


a boolean or a matrix of booleans to indicate if the XML objects exist or not


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("");
r = doc.root
// must return %T

// We delete the doc

// must return [%F %F]
xmlIsValidObject(["doc" "r"])

See Also

  • XML Objects — Describe the properties of the different XML objects
  • xmlDelete — Delete a XML document


5.4.0 XML module introduced.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:57:41 CEST 2014