Main Content

Documentos XML y datos estructurados

Trabaje con datos estructurados y documentos de lenguaje de marcado extensible

Leer y escribir datos estructurados en archivos XML. Desarrolle aplicaciones avanzadas que creen, lean, escriban, transformen o consulten documentos XML con la API de MATLAB® para el procesamiento de XML (MAXP). Para usar MAXP, ha de estar familiarizado con XML, DOM, XSLT, XPath y las normas del W3C relacionadas.

Funciones

expandir todo

readstructCreate structure array from file (desde R2020b)
writestructWrite structure array to file (desde R2020b)
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

Clases

expandir todo

Lectura y escritura de documentos XML

matlab.io.xml.dom.DOMWriterWriter that serializes an XML document (desde R2021a)
matlab.io.xml.dom.EntityResolverAbstract base class for entity resolvers (desde R2021a)
matlab.io.xml.dom.FileWriterWriter that creates a text file (desde R2021a)
matlab.io.xml.dom.LocatorLocation of element in XML file (desde R2021a)
matlab.io.xml.dom.ParserXML markup parser (desde R2021a)
matlab.io.xml.dom.ParserConfigurationXML parser options (desde R2021a)
matlab.io.xml.dom.ParseErrorSpecifies XML markup parse error (desde R2021b)
matlab.io.xml.dom.ParseErrorHandlerAbstract base class for parse error handlers (desde R2021b)
matlab.io.xml.dom.ParseErrorLocatorSpecifies location of parse error (desde R2021b)
matlab.io.xml.dom.ParseErrorSeverityEnumeration class denoting XML markup parse error severity (desde R2021b)
matlab.io.xml.dom.ResourceIdentifierXML resource identifier (desde R2021a)
matlab.io.xml.dom.ResourceIdentifierTypeXML resource identifier type (desde R2021a)
matlab.io.xml.dom.WriterConfigurationXML DOM writer options (desde R2021a)

DOM del W3C

matlab.io.xml.dom.AttrAttribute of XML element (desde R2021a)
matlab.io.xml.dom.CDATASectionCDATA section (desde R2021a)
matlab.io.xml.dom.CommentComment in XML document (desde R2021a)
matlab.io.xml.dom.DocumentXML Document (desde R2021a)
matlab.io.xml.dom.DocumentConfigurationSpecify XML document normalization options (desde R2022a)
matlab.io.xml.dom.DocumentFragmentGroup of document nodes (desde R2021a)
matlab.io.xml.dom.DocumentTypeDocument type (desde R2021a)
matlab.io.xml.dom.ElementElement of XML document (desde R2021a)
matlab.io.xml.dom.EntityEntity defined by document type (desde R2021a)
matlab.io.xml.dom.NamedNodeMapSet of document nodes with names (desde R2021a)
matlab.io.xml.dom.NodeListList of document nodes (desde R2021a)
matlab.io.xml.dom.NotationNotation in document type definition (desde R2021a)
matlab.io.xml.dom.ProcessingInstructionXML processing instruction (desde R2021a)
matlab.io.xml.dom.TextText in an XML document (desde R2021a)
matlab.io.xml.dom.TypeInfoSchema type information (desde R2021a)

Transformación de XML

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

Consultas de XPath

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

Paquetes

expandir todo

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

Temas