1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<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" version="5.0-subset Scilab" xml:id="xmlAsText" xml:lang="ja">
15
<refname>xmlAsText</refname>
16
<refpurpose>XPathクエリの結果を文字列の行に変換</refpurpose>
21
strings = xmlAsText(xp)
30
<para>xp, XMLSet または XMLList型のXML mlist</para>
36
<para>strings, 文字列の行</para>
44
XPathクエリの結果またはノードの子は,文字列を有するXMLElementsの集合とする
46
この関数の用途は,この際,各ノードの内容を文字列に変換することです.
51
<programlisting role="example"><![CDATA[
52
doc = xmlReadStr("<root><a>Hello</a><a>Scilab</a><a>World</a></root>");
54
// 名前が "a" に等しいノードの内容を取得
55
xp = xmlXPath(doc, "//a/text()");
63
<refsection role="see also">
65
<simplelist type="inline">
67
<link linkend="xmlXPath">xmlXPath</link>
70
<link linkend="xmlAsNumber">xmlAsNumber</link>
78
<revnumber>5.4.0</revnumber>
79
<revremark>XMLモジュールが導入されました.</revremark>