Scilab 6.0.1
      
      - Scilabヘルプ
 - XML Management
 - htmlDump
 - htmlRead
 - htmlReadStr
 - htmlWrite
 - xmlAddNs
 - xmlAppend
 - xmlAsNumber
 - xmlAsText
 - xmlDelete
 - xmlDocument
 - xmlDTD
 - xmlDump
 - xmlElement
 - xmlFormat
 - xmlGetNsByHref
 - xmlGetNsByPrefix
 - xmlGetOpenDocs
 - xmlIsValidObject
 - xmlName
 - xmlNs
 - XML Objects
 - xmlRead
 - xmlReadStr
 - xmlRelaxNG
 - xmlRemove
 - xmlSchema
 - xmlSetAttributes
 - xmlValidate
 - xmlWrite
 - xmlXPath
 
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
xmlElement
XML要素を新規に作成する
呼び出し手順
e = xmlElement(doc, name)
引数
- doc
 XMLDoc型のmlist
- name
 要素名を指定する文字列
- e
 XMLElem型のmlist
説明
指定した名前を有するXML要素を新たに作成します.
Examples
doc = xmlReadStr("<root><a>Hello</a><b> world</b></root>"); e = xmlElement(doc, "c"); e.attributes.attr = "value"; e.content = "!"; doc.root.children(3) = e; xmlDump(doc) xmlDelete(doc);
参照
- XML Objects — 異なるのXMLオブジェクトのプロパティを記述する
 - xmlDocument — XML文書を新規に作成
 
履歴
| Version | Description | 
| 5.4.0 | XMLモジュールが導入されました. | 
| Report an issue | ||
| << xmlDump | XML Management | xmlFormat >> |