このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
構造化データと XML ドキュメント
XML ファイルの構造化データの読み取りと書き込みを行います。MATLAB® API for XML Processing (MAXP) を使用して、XML ドキュメントの作成、読み取り、書き込み、変換およびクエリを行う高度なアプリケーションを開発します。MAXP を使用するには、XML、DOM、XSLT、XPath、および関連する W3C 標準の知識が必要です。
関数
readstruct | ファイルから構造体配列を作成する |
writestruct | 構造体配列をファイルに書き込む |
readtable | ファイルからのテーブルの作成 |
writetable | ファイルへの table の書き込み |
クラス
XML ドキュメントの読み取りおよび書き込み
matlab.io.xml.dom.DOMWriter | Writer that serializes an XML document |
matlab.io.xml.dom.EntityResolver | Abstract base class for entity resolvers |
matlab.io.xml.dom.FileWriter | Writer that creates a text file |
matlab.io.xml.dom.Locator | XML ファイル内の要素の位置 |
matlab.io.xml.dom.Parser | XML マークアップ パーサー |
matlab.io.xml.dom.ParserConfiguration | XML parser options |
matlab.io.xml.dom.ParseError | Specifies XML markup parse error (R2021b 以降) |
matlab.io.xml.dom.ParseErrorHandler | Abstract base class for parse error handlers (R2021b 以降) |
matlab.io.xml.dom.ParseErrorLocator | Specifies location of parse error (R2021b 以降) |
matlab.io.xml.dom.ParseErrorSeverity | Enumeration class denoting XML markup parse error severity (R2021b 以降) |
matlab.io.xml.dom.ResourceIdentifier | XML resource identifier |
matlab.io.xml.dom.ResourceIdentifierType | XML リソース識別子タイプ |
matlab.io.xml.dom.WriterConfiguration | XML DOM writer options |
W3C DOM
matlab.io.xml.dom.Attr | Attribute of XML element |
matlab.io.xml.dom.CDATASection | CDATA section |
matlab.io.xml.dom.Comment | Comment in XML document |
matlab.io.xml.dom.Document | XML Document |
matlab.io.xml.dom.DocumentConfiguration | XML document normalization options (R2022a 以降) |
matlab.io.xml.dom.DocumentFragment | Group of document nodes |
matlab.io.xml.dom.DocumentType | Document type |
matlab.io.xml.dom.Element | Element of XML document |
matlab.io.xml.dom.Entity | Entity defined by document type |
matlab.io.xml.dom.NamedNodeMap | Set of document nodes with names |
matlab.io.xml.dom.NodeList | ドキュメント ノードのリスト |
matlab.io.xml.dom.Notation | Notation in document type definition |
matlab.io.xml.dom.ProcessingInstruction | XML processing instruction |
matlab.io.xml.dom.Text | Text in an XML document |
matlab.io.xml.dom.TypeInfo | Schema type information |
XML 変換
matlab.io.xml.transform.CompiledStylesheet | Compiled stylesheet |
matlab.io.xml.transform.ResultDocument | Store transformation result as document |
matlab.io.xml.transform.ResultString | Store transformation result as string |
matlab.io.xml.transform.ResultFile | Store transformation result as file |
matlab.io.xml.transform.SourceDocument | XML source document for transformation |
matlab.io.xml.transform.SourceFile | XML source file for transformation |
matlab.io.xml.transform.SourceString | XML source string for transformation |
matlab.io.xml.transform.StylesheetSourceDocument | Stylesheet source document for transformation |
matlab.io.xml.transform.StylesheetSourceFile | Stylesheet source file for transformation |
matlab.io.xml.transform.StylesheetSourceString | XSL source string for transformation |
matlab.io.xml.transform.Tracer | Trace execution of stylesheet (R2022a 以降) |
matlab.io.xml.transform.Transformer | XML document transformer |
XPath クエリ
matlab.io.xml.xpath.CompiledExpression | Compiled XPath expression |
matlab.io.xml.xpath.EvalResultType | Result type for XPath expression evaluation |
matlab.io.xml.xpath.Evaluator | XPath expression evaluator |
matlab.io.xml.xpath.PrefixResolver | Abstract base class for namespace prefix resolvers |
名前空間
matlab.io.xml.dom | XML の作成、読み取り、および書き込みを行うためのクラス |
matlab.io.xml.transform | XML ドキュメントを変換するクラス |
matlab.io.xml.xpath | XPath 式を評価するためのクラス |
トピック
- XML ファイルのドキュメント オブジェクト モデルへのインポート
matlab.io.xml.dom.Parserまたはxmlreadを使用して、XML ファイルを DOM ドキュメント ノードに読み取る。 - ドキュメント オブジェクト モデルの XML ファイルへのエクスポート
matlab.io.xml.dom.DOMWriterまたはxmlwriteを使用して、DOM ドキュメント ノードを XML ファイルに書き込む。
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)