주요 콘텐츠

정형 데이터와 XML 문서

정형 데이터와 XML(Extensible Markup Language) 문서 사용

XML 파일의 정형 데이터를 읽고 씁니다. MAXP(MATLAB® API for XML Processing)를 사용하여 XML 문서를 생성하고 읽고 쓰고 변환하거나 쿼리하는 고급 애플리케이션을 개발합니다. MAXP를 사용하려면 XML, DOM, XSLT, XPath 및 관련 W3C 표준에 대해 잘 알고 있어야 합니다.

함수

모두 확장

readstructCreate structure array from file
writestructWrite structure array to file
readtable파일에서 테이블 만들기
writetable파일에 테이블 쓰기
xmlreadXML 문서 읽기 및 문서 객체 모델 노드 반환
xmlwriteXML 문서 객체 모델 노드 쓰기
xsltTransform XML document using XSLT engine

클래스

모두 확장

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.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 (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 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 (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

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.transformClasses for transforming XML documents
matlab.io.xml.xpathXPath 표현식을 평가하기 위한 클래스

도움말 항목