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="setPreferencesValue" xml:lang="ja">
18 <refname>setPreferencesValue</refname>
19 <refpurpose>設定値を設定</refpurpose>
24 setPreferencesValue(xpath, key_value [, doc])
40 <term>key_value</term>
42 <para>2xNの文字列行列, 設定するキーの値.</para>
51 XMLDoc型のmlist, 設定ファイルのXML文書.
60 設定ファイル(<literal>SCIHOME+'/XConfiguration.xml'</literal>)
64 誤って設定を修正するとScilabの動作を改変することになります.
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[
112 prev = xmlGetValues("//web/body/proxy", ["enabled", "host", "port"]);
113 setPreferencesValue("//web/body/proxy", ["enabled", "host", "port"; "true", "my.proxy.org", "1234"]);
115 xmlGetValues("//web/body/proxy", ["enabled", "host", "port"])
117 setPreferencesValue("//web/body/proxy", ["enabled", "host", "port" ; prev]);
118 xmlGetValues("//web/body/proxy", ["enabled", "host", "port"])
121 <refsection role="see also">
123 <simplelist type="inline">
125 <link linkend="xmlGetValues">xmlGetValues</link>