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
xmlNs
XML名前空間を新規に作成する
呼び出し手順
ns = xmlNs(elem, prefix, href)
引数
- elem
 XMLElem型のmlist
- prefix
 この名前空間の接頭辞を指定する文字列
- href
 この名前空間のhrefを指定する文字列
説明
あるXML要素に関連するXML名前空間を新たに作成します. 作成された名前空間はその要素またはその子要素で使用できます.
例
doc = xmlDocument("TMPDIR/foo.xml"); doc.root = xmlElement(doc, "root"); ns = xmlNs(doc.root, "scilab", "http://www.scilab.org"); doc.root.children(1) = "<a>hello</a>"; doc.root.children(1).namespace = ns; xmlDump(doc) xmlDelete(doc);
参照
- XML Objects — 異なるのXMLオブジェクトのプロパティを記述する
 - xmlDocument — XML文書を新規に作成
 - xmlElement — XML要素を新規に作成する
 - xmlAddNs — XML要素に名前空間を追加
 - xmlGetNsByHref — 名前名前をhrefにより取得する
 - xmlGetNsByPrefix — 接頭辞により名前空間を取得する
 
履歴
| Version | Description | 
| 5.4.0 | XMLモジュールが導入されました. | 
| Report an issue | ||
| << xmlName | XML Management | XML Objects >> |