Hauptinhalt

Strukturierte Daten und XML-Dokumente

Arbeiten mit strukturierten Daten und Extensible Markup Language-Dokumenten

Lesen und schreiben Sie strukturierte Daten in XML-Dateien. Entwickeln fortschrittlicher Anwendungen zum Erstellen, Lesen, Schreiben, Transformieren oder Abfragen von XML-Dokumenten über MATLAB® API for XML Processing (MAXP). Zur Nutzung von MAXP müssen Sie mit XML, DOM, XSLT, Xpath und den assoziierten W3C-Standards vertraut sein.

Funktionen

alle erweitern

readstructCreate structure array from file
writestructWrite structure array to file
readtableCreate table from file
writetableWrite table to file
xmlreadRead XML document and return Document Object Model node
xmlwriteWrite XML Document Object Model node
xsltTransform XML document using XSLT engine

Klassen

alle erweitern

Lesen und Schreiben in XML-Dokumente

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.LocatorLocation of element in XML file
matlab.io.xml.dom.ParserXML markup parser
matlab.io.xml.dom.ParserConfigurationXML parser options
matlab.io.xml.dom.ParseErrorSpecifies XML markup parse error (Seit R2021b)
matlab.io.xml.dom.ParseErrorHandlerAbstract base class for parse error handlers (Seit R2021b)
matlab.io.xml.dom.ParseErrorLocatorSpecifies location of parse error (Seit R2021b)
matlab.io.xml.dom.ParseErrorSeverityEnumeration class denoting XML markup parse error severity (Seit R2021b)
matlab.io.xml.dom.ResourceIdentifierXML resource identifier
matlab.io.xml.dom.ResourceIdentifierTypeXML resource identifier type
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 (Seit 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.NodeListList of document nodes
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

Umwandlung von XML-Dateien

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 (Seit R2022a)
matlab.io.xml.transform.TransformerXML document transformer

XPath-Abfragen

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

Namespaces

alle erweitern

matlab.io.xml.domClasses for creating, reading, and writing XML
matlab.io.xml.transformClasses for transforming XML documents
matlab.io.xml.xpathClasses for evaluating XPath expressions

Themen