Scilab 5.4.1
      
      - Scilab help
 - XML Management
 - XML Objects
 - xmlAddNs
 - xmlAppend
 - xmlAsNumber
 - xmlAsText
 - xmlDTD
 - xmlDelete
 - xmlDocument
 - xmlDump
 - xmlElement
 - xmlFormat
 - xmlGetNsByHref
 - xmlGetNsByPrefix
 - xmlGetOpenDocs
 - xmlIsValidObject
 - xmlName
 - xmlNs
 - 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
xmlSchema
XMLスキーマオブジェクトを作成する
呼び出し手順
schema = xmlSchema(path)
引数
- path
 検証ファイルのパスを指定する文字列
- dtd
 XMLValid型のmlist
説明
スキーマで文書を検証する際に有用です.
例
doc = xmlRead("SCI/modules/xml/tests/unit_tests/library.xml"); schema = xmlSchema("SCI/modules/xml/tests/unit_tests/library.xsd"); // 文書が有効かどうかを調べます // エラーがない場合,ファイルは有効です xmlValidate(doc, schema); xmlDelete(doc, schema);
参照
- xmlValidate — DTD, Relax NG または Schema により文書を検証する.
 
履歴
| バージョン | 記述 | 
| 5.4.0 | XMLモジュールが導入されました. | 
| Report an issue | ||
| << xmlRemove | XML Management | xmlSetAttributes >> |