<< xmlRemove XML Management xmlSetAttributes >>

Scilab Help >> XML Management > xmlSchema

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);

参照

履歴

VersionDescription
5.4.0 XMLモジュールが導入されました.

Report an issue
<< xmlRemove XML Management xmlSetAttributes >>