考虑一个需要docx文档文本的用户,而不需要在R中处理页眉和页脚.
如果将file.docx重命名为file.zip并分析文档document.xml - 它是一个格式良好的XML文档及其文本.
Microsfot(或其他开发人员)是否在docx文件的ZIP包中发布了此document.xml子文件的架构?
该文件如下所示:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 wp14">
- <w:body>
- <w:p w:rsidR="00F447D7" w:rsidRPr="00C63308" w:rsidRDefault="00F447D7">
- <w:pPr>
Run Code Online (Sandbox Code Playgroud)
Jas*_*ext 13
来自维基百科:
该格式最初由Ecma(作为ECMA-376)标准化,在后续版本中由ISO和IEC(作为ISO/IEC 29500)标准化.
您可以在ECMA-376下载中找到各种版本的XSD
document.xml符合模式的WordprocessingML部分(查找wml.xsd).
| 归档时间: |
|
| 查看次数: |
10448 次 |
| 最近记录: |