xpath_query
Run XPath queries on any part of a DOCX file, targeting paragraphs, text, or custom structures using pre-bound XML namespaces.
Instructions
Run XPath against any DOCX part. Pre-bound namespaces: w, w14, r, wp, a, mc.
Examples: xpath="//w:p" — all paragraphs xpath="//w:t/text()" — all text content xpath="//w:p[w:pPr/w:pStyle/@w:val='Heading1']" — Heading 1 paragraphs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | Yes | ||
| part | No | word/document.xml |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |