<< Preferences Preferences preferences >>

Ajuda do Scilab >> Preferences > getPreferencesValue

getPreferencesValue

Get preferences value

Calling Sequence

getPreferencesValue(xpath, attributes [, doc])

Arguments

xpath

a string, represents the XPath request to get the node in the preferences file.

attributes

a matrix of strings, the attributes names.

doc

a mlist typed XMLDoc, the XML document associated to the preference file.

Description

Get the values of the attributes in preferences file (SCIHOME+'/XConfiguration.xml').

When doc is specified, the values are searched in this document. It is useful when several requests need to be done to avoid to parse again and again the same configuration file.

All valid XPath requests are possible. For example to write the XPath request to get proxy settings:

Examples

getPreferencesValue("//web/body/proxy", ["enabled", "host", "port"]);

See Also


Report an issue
<< Preferences Preferences preferences >>