一些用户经常遇到文档损坏的问题。
我们有一个应用程序,使用Webdav在服务器上存储Word文档。在服务器上访问和编辑这些文档的用户可能在office 2007和office 2010上。大多数文档都是共享的,Office2007和Office2010用户可以点击这些文档进行编辑。
许多用户遇到文档损坏问题,并出现以下错误。==>“无法打开文件xxx,因为”内容有问题“详细信息:没有可用的错误详细信息。位置部分: /word/document.xml行:1列0
在格式化本文档的document.xml文件后,我发现错误指向行=> ,完整的节点如下所示。
<w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="4572638" cy="3429479"/>
<wp:effectExtent l="0" t="0" r="0" b="0"/>
<wp:docPr id="1026" name="Picture 1026"/>
<wp:cNvGraphicFramePr>
<a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>
</wp:cNvGraphicFramePr>
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="0" name=""/>
<pic:cNvPicPr>
<a:picLocks noChangeAspect="1"/>
</pic:cNvPicPr>
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId8"/>
<a:stretch>
<a:fillRect/>
</a:stretch>
</pic:blipFill>
<pic:spPr>
<a:xfrm>
<a:off x="0" y="0"/>
<a:ext cx="4572638" cy="3429479"/>
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst/>
</a:prstGeom>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing>在这件事上请帮帮我。
发布于 2013-12-26 12:10:37
简而言之,"name“是docPr和cNvPr元素的必需属性:
<xsd:complexType name="CT_PictureNonVisual">
<xsd:sequence>
<xsd:element name="cNvPr" type="a:CT_NonVisualDrawingProps"/>
...
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CT_Inline">
<xsd:sequence>
...
<xsd:element name="docPr" type="a:CT_NonVisualDrawingProps"/>
...
</xsd:sequence>
...
</xsd:complexType>
<xsd:complexType name="CT_NonVisualDrawingProps">
...
<xsd:attribute name="id" type="ST_DrawingElementId" use="required"/>
<xsd:attribute name="name" type="xsd:string" use="required"/>
...
</xsd:complexType>我将不得不猜测该属性在过程中的哪个位置被删除或删除。但是如果没有它,document.xml部件就不是模式有效的,这将解释所需的修复步骤。
https://stackoverflow.com/questions/12592296
复制相似问题