Where can I find the XSDs of DOCX XML files?

前端 未结 1 899
梦谈多话
梦谈多话 2020-12-12 03:30

I\'ve created a docx file, unzipped it. Now I have:

  • _rels (folder)
  • docProps (folder)
  • word (folder)
  • [Content_Types].xml
相关标签:
1条回答
  • 2020-12-12 04:09

    [Content_Types].xml defines the MIME media types for the package parts in Open Packaging Conventions container-file technology that's a part of OOXML.

    See the Standard ECMA-376 site, Part 2 of any edition, for the OPC XSDs, including the opc-contentTypes.xsd which you seek. It starts like this:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <xs:schema xmlns="http://schemas.openxmlformats.org/package/2006/content-types"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://schemas.openxmlformats.org/package/2006/content-types"
      elementFormDefault="qualified" attributeFormDefault="unqualified"
      blockDefault="#all">
    
      <xs:element name="Types" type="CT_Types"/>
    

    Part 4 has references and XSDs for other parts of OOXML such as WordprocessingML, SpreadsheetML, PresentationML, DrawingML, Shared MLs and Custom XML Schema.

    0 讨论(0)
提交回复
热议问题