1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2014 - Scilab Enterprises - Calixte DENIZET
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="getPreferencesValue" xml:lang="ja">
18 <refname>getPreferencesValue</refname>
19 <refpurpose>設定値を取得 <emphasis role="bold">(非推奨)</emphasis></refpurpose>
24 getPreferencesValue(xpath, attributes [, doc])
40 <term>attributes</term>
42 <para>文字列の行列, 属性名.</para>
50 <para>XMLDoc型のmlist, 設定ファイルのXML文書.
59 <literal>getPreferencesValue()</literal> is obsolete. It is cloned into
60 <code>xmlGetValues()</code>. It will be removed from Scilab 6.1.x
63 設定ファイル(<literal>SCIHOME+'/XConfiguration.xml'</literal>)の
67 docを指定した場合, 値はこの文書内で探されます.
69 同じ設定ファイルを重複してパースすることを避けるために
73 有効な任意のXPathリクエストを指定できます.
74 例えば,proxy設定を取得するXPathリクエストは以下のように
77 <simplelist type="inline">
80 ファイル<literal>SCIHOME+'/XConfiguration.xml'</literal>
81 を開き,指定したノードにアクセスするためのノード名を
84 <programlisting role="xml"><![CDATA[
85 <?xml version="1.0" encoding="utf-8" standalone="no"?>
86 <interface height="600" path="1/" version="0.17" width="800">
87 <general title="_(General)">
92 <web command-browser="" command-mailer="" default-browser="true" default-mailer="true"/>
93 <proxy enabled="false" host="" password="" port="" user=""/>
94 <previous-proxy enabled="false" host="" password="" port="" user=""/>
101 パスは<literal>"/interface/web/body/proxy"</literal>
102 (または簡単化するために<literal>"//web/body/proxy"</literal>)
110 <programlisting role="example"><![CDATA[
111 getPreferencesValue("//web/body/proxy", ["enabled", "host", "port"]);
114 <refsection role="see also">
116 <simplelist type="inline">
118 <link linkend="xmlGetValues">xmlGetValues</link>
121 <link linkend="xmlSetValues">xmlSetValues</link>
125 <refsection role="history">
126 <title>History</title>
129 <revnumber>5.5.0</revnumber>
130 <revdescription>getPreferencesValue() introduced.
134 <revnumber>6.0.0</revnumber>
138 XMLsource can now be the path + filename of the preferences file.
141 A tag with multiple occurrences can now be read.
147 <revnumber>6.0.2</revnumber>
148 <revdescription>getPreferencesValue() is cloned into xmlGetValues(). It is
149 declared obsolete and will be removed from Scilab 6.1.x