Dati strutturati e documenti XML
Leggere e scrivere dati strutturati in file XML. Sviluppare applicazioni avanzate per creare, leggere, scrivere, trasformare o interrogare documenti XML utilizzando l’API di MATLAB® per l’elaborazione XML (MAXP). Per utilizzare MAXP, è necessario conoscere XML, DOM, XSLT, XPath e gli standard W3C associati.
Funzioni
Lettura e scrittura di dati strutturati
readstruct | Create structure array from file (Da R2020b) |
writestruct | Write structure array to file (Da R2020b) |
readtable | Create table from file |
writetable | Write table to file |
Classi
API di MATLAB per l’elaborazione XML
Lettura e scrittura di documenti XML
matlab.io.xml.dom.DOMWriter | Writer that serializes an XML document (Da R2021a) |
matlab.io.xml.dom.EntityResolver | Abstract base class for entity resolvers (Da R2021a) |
matlab.io.xml.dom.FileWriter | Writer that creates a text file (Da R2021a) |
matlab.io.xml.dom.Locator | Location of element in XML file (Da R2021a) |
matlab.io.xml.dom.Parser | XML markup parser (Da R2021a) |
matlab.io.xml.dom.ParserConfiguration | XML parser options (Da R2021a) |
matlab.io.xml.dom.ParseError | Specifies XML markup parse error (Da R2021b) |
matlab.io.xml.dom.ParseErrorHandler | Abstract base class for parse error handlers (Da R2021b) |
matlab.io.xml.dom.ParseErrorLocator | Specifies location of parse error (Da R2021b) |
matlab.io.xml.dom.ParseErrorSeverity | Enumeration class denoting XML markup parse error severity (Da R2021b) |
matlab.io.xml.dom.ResourceIdentifier | XML resource identifier (Da R2021a) |
matlab.io.xml.dom.ResourceIdentifierType | XML resource identifier type (Da R2021a) |
matlab.io.xml.dom.WriterConfiguration | XML DOM writer options (Da R2021a) |
W3C DOM
matlab.io.xml.dom.Attr | Attribute of XML element (Da R2021a) |
matlab.io.xml.dom.CDATASection | CDATA section (Da R2021a) |
matlab.io.xml.dom.Comment | Comment in XML document (Da R2021a) |
matlab.io.xml.dom.Document | XML Document (Da R2021a) |
matlab.io.xml.dom.DocumentConfiguration | Specify XML document normalization options (Da R2022a) |
matlab.io.xml.dom.DocumentFragment | Group of document nodes (Da R2021a) |
matlab.io.xml.dom.DocumentType | Document type (Da R2021a) |
matlab.io.xml.dom.Element | Element of XML document (Da R2021a) |
matlab.io.xml.dom.Entity | Entity defined by document type (Da R2021a) |
matlab.io.xml.dom.NamedNodeMap | Set of document nodes with names (Da R2021a) |
matlab.io.xml.dom.NodeList | List of document nodes (Da R2021a) |
matlab.io.xml.dom.Notation | Notation in document type definition (Da R2021a) |
matlab.io.xml.dom.ProcessingInstruction | XML processing instruction (Da R2021a) |
matlab.io.xml.dom.Text | Text in an XML document (Da R2021a) |
matlab.io.xml.dom.TypeInfo | Schema type information (Da R2021a) |
Trasformazione XML
matlab.io.xml.transform.CompiledStylesheet | Compiled stylesheet (Da R2021a) |
matlab.io.xml.transform.ResultDocument | Store transformation result as document (Da R2021a) |
matlab.io.xml.transform.ResultString | Store transformation result as string (Da R2021a) |
matlab.io.xml.transform.ResultFile | Store transformation result as file (Da R2021a) |
matlab.io.xml.transform.SourceDocument | XML source document for transformation (Da R2021a) |
matlab.io.xml.transform.SourceFile | XML source file for transformation (Da R2021a) |
matlab.io.xml.transform.SourceString | XML source string for transformation (Da R2021a) |
matlab.io.xml.transform.StylesheetSourceDocument | Stylesheet source document for transformation (Da R2021a) |
matlab.io.xml.transform.StylesheetSourceFile | Stylesheet source file for transformation (Da R2021a) |
matlab.io.xml.transform.StylesheetSourceString | XSL source string for transformation (Da R2021a) |
matlab.io.xml.transform.Tracer | Trace execution of stylesheet (Da R2022a) |
matlab.io.xml.transform.Transformer | XML document transformer (Da R2021a) |
Interrogazioni XPath
matlab.io.xml.xpath.CompiledExpression | Compiled XPath expression (Da R2021a) |
matlab.io.xml.xpath.EvalResultType | Result type for XPath expression evaluation (Da R2021a) |
matlab.io.xml.xpath.Evaluator | XPath expression evaluator (Da R2021a) |
matlab.io.xml.xpath.PrefixResolver | Abstract base class for namespace prefix resolvers (Da R2021a) |
Namespaces
API di MATLAB per l’elaborazione XML
matlab.io.xml.dom | Classes for creating, reading, and writing XML (Da R2021a) |
matlab.io.xml.transform | Classes for transforming XML documents (Da R2021a) |
matlab.io.xml.xpath | Classes for evaluating XPath expressions (Da R2021a) |
Argomenti
- Import an XML File into a Document Object Model
Use
matlab.io.xml.dom.Parser
orxmlread
to read an XML file into a DOM document node. - Export a Document Object Model to an XML File
Use
matlab.io.xml.dom.DOMWriter
orxmlwrite
to write a DOM document node to an XML file.
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)