Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Gestion des fichiers XML > xmlIsValidObject

xmlIsValidObject

Test the existence of a XML object

Calling Sequence

exists = xmlIsValidObject(obj)

Arguments

obj

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

exists

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

Description

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.

Examples

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"])

See Also

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

History

VersionDescription
5.4.0 XML module introduced.
Report an issue
<< xmlGetOpenDocs Gestion des fichiers XML xmlName >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:21:42 CEST 2015