정형 데이터와 XML 문서
정형 데이터와 XML(Extensible Markup Language) 문서 사용
XML 파일의 정형 데이터를 읽고 씁니다. MAXP(MATLAB® API for XML Processing)를 사용하여 XML 문서를 생성하고 읽고 쓰고 변환하거나 쿼리하는 고급 애플리케이션을 개발합니다. MAXP를 사용하려면 XML, DOM, XSLT, XPath 및 관련 W3C 표준에 대해 잘 알고 있어야 합니다.
함수
readstruct | Create structure array from file |
writestruct | Write structure array to file |
readtable | 파일에서 테이블 만들기 |
writetable | 파일에 테이블 쓰기 |
클래스
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 | Location of element in XML file |
matlab.io.xml.dom.Parser | XML markup parser |
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 resource identifier type |
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 | List of document nodes |
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 | Classes for transforming XML documents |
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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)