Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> XML Management > xmlName

xmlName

要素名を取得する.

呼出し手順

names = xmlName(obj)

引数

obj

obj, XMLSet,XMLList,XMLElemまたはXMLAttr型の XML mlist

name

名前, 1行分の文字列

説明

XMLObjectを構成する要素の名前を取得します.

doc = xmlReadStr("<root><foo a=""123"" b=""456"" c=""789""/></root>")
// 単一の要素の名前を取得
xmlName(doc.root.children(1))
// 属性のリストの名前を取得
xmlName(doc.root.children(1).attributes)
// XPathクエリの結果の名前を取得
xmlName(xmlXPath(doc,"//foo/@*"))
xmlDelete(doc);

参照

  • xmlXPath — XML文書にXPathクエリを作成する
  • xmlAsText — XPathクエリの結果を文字列の行に変換
  • xmlAsNumber — XPathクエリの結果を数値の行に変換

履歴

VersionDescription
5.4.1 xmlName関数が導入されました.
Report an issue
<< xmlIsValidObject XML Management xmlNs >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:53:22 CET 2020