メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

構造化データと XML ドキュメント

構造化データと拡張マークアップ言語のドキュメントの操作

XML ファイルの構造化データの読み取りと書き込みを行います。MATLAB® API for XML Processing (MAXP) を使用して、XML ドキュメントの作成、読み取り、書き込み、変換およびクエリを行う高度なアプリケーションを開発します。MAXP を使用するには、XML、DOM、XSLT、XPath、および関連する W3C 標準の知識が必要です。

関数

すべて展開する

readstructファイルから構造体配列を作成する
writestruct構造体配列をファイルに書き込む
readtableファイルからのテーブルの作成
writetableファイルへの table の書き込み
xmlreadXML ドキュメントを読み取って、ドキュメント オブジェクト モデル ノードを返す
xmlwriteXML ドキュメント オブジェクト モデル ノードを書き込む
xsltXSLT エンジンを使って XML ドキュメントを変換

クラス

すべて展開する

XML ドキュメントの読み取りおよび書き込み

matlab.io.xml.dom.DOMWriterWriter that serializes an XML document
matlab.io.xml.dom.EntityResolverAbstract base class for entity resolvers
matlab.io.xml.dom.FileWriterWriter that creates a text file
matlab.io.xml.dom.LocatorXML ファイル内の要素の位置
matlab.io.xml.dom.ParserXML マークアップ パーサー
matlab.io.xml.dom.ParserConfigurationXML parser options
matlab.io.xml.dom.ParseErrorSpecifies XML markup parse error (R2021b 以降)
matlab.io.xml.dom.ParseErrorHandlerAbstract base class for parse error handlers (R2021b 以降)
matlab.io.xml.dom.ParseErrorLocatorSpecifies location of parse error (R2021b 以降)
matlab.io.xml.dom.ParseErrorSeverityEnumeration class denoting XML markup parse error severity (R2021b 以降)
matlab.io.xml.dom.ResourceIdentifierXML resource identifier
matlab.io.xml.dom.ResourceIdentifierTypeXML リソース識別子タイプ
matlab.io.xml.dom.WriterConfigurationXML DOM writer options

W3C DOM

matlab.io.xml.dom.AttrAttribute of XML element
matlab.io.xml.dom.CDATASectionCDATA section
matlab.io.xml.dom.CommentComment in XML document
matlab.io.xml.dom.DocumentXML Document
matlab.io.xml.dom.DocumentConfigurationXML document normalization options (R2022a 以降)
matlab.io.xml.dom.DocumentFragmentGroup of document nodes
matlab.io.xml.dom.DocumentTypeDocument type
matlab.io.xml.dom.ElementElement of XML document
matlab.io.xml.dom.EntityEntity defined by document type
matlab.io.xml.dom.NamedNodeMapSet of document nodes with names
matlab.io.xml.dom.NodeListドキュメント ノードのリスト
matlab.io.xml.dom.NotationNotation in document type definition
matlab.io.xml.dom.ProcessingInstructionXML processing instruction
matlab.io.xml.dom.TextText in an XML document
matlab.io.xml.dom.TypeInfoSchema type information

XML 変換

matlab.io.xml.transform.CompiledStylesheetCompiled stylesheet
matlab.io.xml.transform.ResultDocumentStore transformation result as document
matlab.io.xml.transform.ResultStringStore transformation result as string
matlab.io.xml.transform.ResultFileStore transformation result as file
matlab.io.xml.transform.SourceDocumentXML source document for transformation
matlab.io.xml.transform.SourceFileXML source file for transformation
matlab.io.xml.transform.SourceStringXML source string for transformation
matlab.io.xml.transform.StylesheetSourceDocumentStylesheet source document for transformation
matlab.io.xml.transform.StylesheetSourceFileStylesheet source file for transformation
matlab.io.xml.transform.StylesheetSourceStringXSL source string for transformation
matlab.io.xml.transform.TracerTrace execution of stylesheet (R2022a 以降)
matlab.io.xml.transform.TransformerXML document transformer

XPath クエリ

matlab.io.xml.xpath.CompiledExpressionCompiled XPath expression
matlab.io.xml.xpath.EvalResultTypeResult type for XPath expression evaluation
matlab.io.xml.xpath.EvaluatorXPath expression evaluator
matlab.io.xml.xpath.PrefixResolverAbstract base class for namespace prefix resolvers

名前空間

すべて展開する

matlab.io.xml.domXML の作成、読み取り、および書き込みを行うためのクラス
matlab.io.xml.transformXML ドキュメントを変換するクラス
matlab.io.xml.xpathXPath 式を評価するためのクラス

トピック