Skip to content

Instantly share code, notes, and snippets.

@lucashmorais
Last active March 30, 2021 21:42
Show Gist options
  • Save lucashmorais/e14f0e9cd03d5e56b0329e2ae09eaa81 to your computer and use it in GitHub Desktop.
Save lucashmorais/e14f0e9cd03d5e56b0329e2ae09eaa81 to your computer and use it in GitHub Desktop.
Comparing XML generated by DOCX and LibreOffice 7
<?xml version="1.0" encoding="UTF-8"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" 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:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 w15 wp14">
<w:background w:color="FFFFFF" />
<w:body>
<w:p>
<w:pPr>
<w:pBdr>
<w:top w:color="auto" w:space="1" w:val="single" w:sz="6" />
<w:bottom w:color="auto" w:space="1" w:val="single" w:sz="6" />
<w:left w:color="auto" w:space="1" w:val="single" w:sz="6" />
<w:right w:color="auto" w:space="1" w:val="single" w:sz="6" />
</w:pBdr>
<w:framePr w:w="4000" w:h="1000" w:x="1000" w:y="6000" w:hAnchor="margin" w:vAnchor="margin" w:xAlign="center" w:yAlign="top" />
</w:pPr>
<w:r>
<w:t xml:space="preserve">Simple Hello World test sentence.</w:t>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:w="11906" w:h="16838" w:orient="portrait" />
<w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="708" w:footer="708" w:gutter="0" w:mirrorMargins="false" />
<w:cols w:space="708" w:num="1" w:sep="false" />
<w:docGrid w:linePitch="360" />
<w:pgNumType />
</w:sectPr>
</w:body>
</w:document>
<?xml version="1.0" encoding="UTF-8"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" 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:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 wp14">
<w:background w:color="FFFFFF" />
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
</w:r>
<w:r>
<mc:AlternateContent>
<mc:Choice Requires="wps">
<w:drawing>
<wp:anchor behindDoc="0" distT="0" distB="0" distL="0" distR="0" simplePos="0" locked="0" layoutInCell="0" allowOverlap="1" relativeHeight="2">
<wp:simplePos x="0" y="0" />
<wp:positionH relativeFrom="column">
<wp:posOffset>779780</wp:posOffset>
</wp:positionH>
<wp:positionV relativeFrom="paragraph">
<wp:posOffset>1673225</wp:posOffset>
</wp:positionV>
<wp:extent cx="2540000" cy="635000" />
<wp:effectExtent l="0" t="0" r="0" b="0" />
<wp:wrapSquare wrapText="bothSides" />
<wp:docPr id="1" name="Frame1" />
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.microsoft.com/office/word/2010/wordprocessingShape">
<wps:wsp>
<wps:cNvSpPr txBox="1" />
<wps:spPr>
<a:xfrm>
<a:off x="0" y="0" />
<a:ext cx="2540000" cy="635000" />
</a:xfrm>
<a:prstGeom prst="rect" />
<a:solidFill>
<a:srgbClr val="FFFFFF" />
</a:solidFill>
<a:ln w="9525">
<a:solidFill>
<a:srgbClr val="000000" />
</a:solidFill>
</a:ln>
</wps:spPr>
<wps:txbx>
<w:txbxContent>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal" />
<w:pBdr />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>Simple Hello World test sentence.</w:t>
</w:r>
</w:p>
</w:txbxContent>
</wps:txbx>
<wps:bodyPr anchor="t" lIns="12700" tIns="12700" rIns="12700" bIns="12700">
<a:noAutofit />
</wps:bodyPr>
</wps:wsp>
</a:graphicData>
</a:graphic>
</wp:anchor>
</w:drawing>
</mc:Choice>
<mc:Fallback>
<w:pict>
<v:rect strokecolor="#000000" strokeweight="0pt" style="position:absolute;rotation:0;width:200pt;height:50pt;mso-wrap-distance-left:0pt;mso-wrap-distance-right:0pt;mso-wrap-distance-top:0pt;mso-wrap-distance-bottom:0pt;margin-top:131.75pt;mso-position-vertical-relative:text;margin-left:61.4pt;mso-position-horizontal-relative:text">
<v:textbox inset="0.0138888888888889in,0.0138888888888889in,0.0138888888888889in,0.0138888888888889in">
<w:txbxContent>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal" />
<w:pBdr />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>Simple Hello World test sentence.</w:t>
</w:r>
</w:p>
</w:txbxContent>
</v:textbox>
<w10:wrap type="square" />
</v:rect>
</w:pict>
</mc:Fallback>
</mc:AlternateContent>
</w:r>
</w:p>
<w:sectPr>
<w:type w:val="nextPage" />
<w:pgSz w:w="11906" w:h="16838" />
<w:pgMar w:left="1440" w:right="1440" w:header="0" w:top="1440" w:footer="0" w:bottom="1440" w:gutter="0" />
<w:pgNumType w:fmt="decimal" />
<w:formProt w:val="false" />
<w:textDirection w:val="lrTb" />
<w:docGrid w:type="default" w:linePitch="360" w:charSpace="8192" />
</w:sectPr>
</w:body>
</w:document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment