xpath_query
Run XPath queries on DOCX document parts to extract specific elements like paragraphs or text content. Uses pre-bound namespaces for common Office Open XML prefixes.
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 |