<< Preferences Preferences preferences >>

Scilabヘルプ >> Preferences > getPreferencesValue

getPreferencesValue

設定値を取得 (非推奨)

呼び出し手順

getPreferencesValue(xpath, attributes [, doc])

引数

xpath

文字列, 設定ファイルのノードを取得する XPathリクエストを表す.

attributes

文字列の行列, 属性名.

doc

XMLDoc型のmlist, 設定ファイルのXML文書.

説明

getPreferencesValue() is obsolete. It is cloned into xmlGetValues(). It will be removed from Scilab 6.1.x

設定ファイル(SCIHOME+'/XConfiguration.xml')の 属性の値を取得します.

docを指定した場合, 値はこの文書内で探されます. 複数のリクエストを実行する必要がある際, 同じ設定ファイルを重複してパースすることを避けるために 有用です.

有効な任意のXPathリクエストを指定できます. 例えば,proxy設定を取得するXPathリクエストは以下のように 記述できます:

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

参照

History

バージョン記述
5.5.0 getPreferencesValue() introduced.
6.0.0
  • XMLsource can now be the path + filename of the preferences file.
  • A tag with multiple occurrences can now be read.
6.0.2 getPreferencesValue() is cloned into xmlGetValues(). It is declared obsolete and will be removed from Scilab 6.1.x

Report an issue
<< Preferences Preferences preferences >>