在哪里可以找到 DOCX XML 文件的 XSD? [英] Where can I find the XSDs of DOCX XML files?

查看:27
本文介绍了在哪里可以找到 DOCX XML 文件的 XSD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 docx 文件,将其解压缩.现在我有:

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

  • _rels(文件夹)
  • docProps(文件夹)
  • 单词(文件夹)
  • [Content_Types].xml

[Content_Types].xml的内容是:

The content of [Content_Types].xml is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
    <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
    <Default Extension="xml" ContentType="application/xml"/>
    <Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
    <Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
    <Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>
    <Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/>
    <Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>
    <Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
    <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
    <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
</Types>

在哪里可以找到 [Content_Types].xml 的 xsd 架构文件?

Where can I find [Content_Types].xml's xsd schema file?

("http://schemas.openxmlformats.org/package/2006/content-types" - 不是常规网页,也不包含与 xsd 相关的内容...)

("http://schemas.openxmlformats.org/package/2006/content-types" - is not a regular web page, nor contains something related to xsd...)

推荐答案

[Content_Types].xml 定义了 Open Packaging Conventions 容器文件技术中包部分的 MIME 媒体类型,它是OOXML.

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

请参阅 标准 ECMA-376 网站,任何版本的第 2 部分,适用于 OPC XSD,包括您寻找的 opc-contentTypes.xsd.开头是这样的:

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"/>

第 4 部分包含 OOXML 其他部分的参考和 XSD,例如 WordprocessingML、SpreadsheetML、PresentationML、DrawingML、共享 ML 和自定义 XML 架构.

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

这篇关于在哪里可以找到 DOCX XML 文件的 XSD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆