Ooxml

Element ordering in <w:pPr>: <w:pStyle>, <w:numPr>, <w:spacing>, <w:ind>, <w:jc> Whitespace: Add xml:space='preserve' to <w:t> elements with leading/trailing sp

SEOContentCRO
bykursku2,196 words

What is Ooxml?

What this skill does

The Ooxml skill ensures compliance with Office Open XML schema rules, focusing on correct element ordering and whitespace preservation in WordprocessingML documents. It enforces the required sequence of paragraph properties such as `<w:pStyle>`, `<w:numPr>`, `<w:spacing>`, `<w:ind>`, and `<w:jc>`, and adds `xml:space='preserve'` to `<w:t>` elements that contain leading or trailing spaces. This skill also handles proper escaping of special characters and supports tracked changes with strict tag placement and revision ID formats, which is critical for maintaining document integrity and compatibility with Office applications.

Who it's for

This skill is designed for SEO content strategists and CRO specialists working with automated document generation or dynamic content exports in Word formats. It is also valuable for agency technologists managing bulk content workflows that output to OOXML, ensuring that generated documents meet Microsoft Office’s strict validation and rendering standards. Growth marketers integrating content pipelines with document automation tools will benefit from consistent formatting and error reduction this skill provides.

Key workflows

Practitioners start by validating that paragraph property elements within `<w:pPr>` blocks follow the correct order, preventing rendering issues in Word. Next, they scan text runs for leading or trailing whitespace and add the `xml:space='preserve'` attribute to `<w:t>` elements to maintain exact spacing. They then ensure that special characters like curly quotes and em-dashes are properly escaped to their Unicode equivalents to avoid corruption. Finally, when handling tracked changes, they verify that `<w:ins>` and `<w:del>` tags are correctly closed and that revision IDs conform to the required 8-digit hexadecimal format.

Common questions

How strict is the element ordering in `<w:pPr>`? It must be exactly `<w:pStyle>`, `<w:numPr>`, `<w:spacing>`, `<w:ind>`, `<w:jc>` to pass Office validation. Can I omit `xml:space='preserve'` on `<w:t>` elements with trailing spaces? Omitting it risks whitespace loss during rendering in Word. What format should RSIDs use for tracked changes? RSIDs must be 8-digit hex strings containing only 0-9 and A-F characters.

How to use in Metaflow

Attach the Ooxml skill to a Metaflow agent task that processes WordprocessingML documents to automatically enforce element ordering and whitespace preservation as part of your content pipeline. When applied, expect the output to meet Office Open XML validation and display consistently in Microsoft Word without formatting errors. This skill integrates smoothly with other document manipulation tasks, enabling reliable content exports across campaigns and workflows.

For broader context, see our roundup of claude marketing skills, and read Claude skills for SEO for related setup guidance.