Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
Scilabヘルプ >> XML Management > xmlDump

xmlDump

XMLオブジェクトをダンプする

呼び出し手順

str = xmlDump(xmlObj [, indent])

引数

xmlObj

xmlObj, XML mlist

indent

indent, 論理値

str

str, 文字列の行列

説明

XMLオブジェクトをダンプします. ダンプ可能なオブジェクトは XMLDoc, XMLElement または XMLListです. indentがfalseの場合(デフォルトではtrue),インデント及び復改記号は 追加されません.

doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
// 文書をダンプ
xmlDump(doc)
// インデントなしに文書をダンプ
xmlDump(doc, %f)
// ノードリストをダンプ
xmlDump(doc.root.children)
//要素をダンプ
xmlDump(doc.root.children(1))
xmlDelete(doc);

参照

  • xmlWrite — XML文書をファイルに書き込む

履歴

バージョン記述
5.4.0 XMLモジュールが導入されました.
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:28 CEST 2016