2016-04-05 20 views
1

Bir docx dosyası oluşturdum, sıkıştırılmış. Şimdi var:DOCX XML dosyalarının XSD'lerini nerede bulabilirim?

  • _rels (klasör)
  • DocProps (klasör)
  • kelime (klasör)
  • [content_types] .xml

içeriği [content_types] .xml şudur:

<?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 şema dosyasını nerede bulabilirim?

("http://schemas.openxmlformats.org/package/2006/content-types" - Normal bir web sayfası değil, ne de xsd ilgili bir şey içerir ...)

+0

Bunu faydalı bulabilirsiniz: şemada bir şeylere bakmam gerektiğinde kullandığım şey (bunun ne anlama geldiğini anlamak yerine, yani ECMA dokümanlarını kullandığım zamanki gibi): http: //www.datypic. com/sc/ooxml/ss.html –

cevap

1

[content_types] .xml Açık Ambalaj Sözleşmeleri paket parçaları için MIME ortam türlerini tanımlar OOXML'in bir parçası olan konteyner dosya teknolojisi.

aradığınız opc-contentTypes.xsd dahil OPC XSD'ler için, Standard ECMA-376 siteyi Part herhangi baskısının 2 bakınız. Şöyle başlıyor: 4 böyle WordprocessingML SpreadsheetML, PresentationML, DrawingML, Paylaşılan ML'leri ve Özel XML şeması şeklinde OOXML'in diğer bölümleri için başvurular XSDs sahiptir

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

parçası.

+0

Harika cevabınız için teşekkürler! Bir sonraki sorumu görebilir misiniz: http://stackoverflow.com/questions/36454888/why-my-xml-file-is-detected-as-a-valid-xml. Çok teşekkürler! –

İlgili konular