JSON API - getDocxPathQueryInfo

getDocxPathQueryInfo

PREMIUM TRIAL / ADVANCED

Gets information from a performed DOCXPath query.

Note

You are reading the JSON API documentation. For the PHP API method please go to getDocxPathQueryInfo.

JSON data
Key Description
referenceNode Reference node cloned.
type
  • * (all, default value)
  • bookmark
  • break
  • chart
  • endnote (content reference)
  • footnote (content reference)
  • image
  • list
  • math
  • paragraph (also for bookmarks, links and lists)
  • section
  • shape
  • table
  • table-row
  • table-cell
  • table-cell-paragraph
  • tracking-insert
  • tracking-delete
  • tracking-run-style
  • tracking-paragraph-style
  • tracking-table-style
  • tracking-table-grid
  • tracking-table-row
contains Contains a text string.
occurrence
  • (number) exact occurrence (from 1)
  • (array) occurrences
  • (string) range of contents (e.g.: "2..9", "2..", "..9") or "first()" or "last()"
attributes Contains a specific attribute key and value.
parent Main document body as default, allows to set any parent or a specific one. w:body (default), "/" (any parent) or any other specific parent (/w:tbl/, /w:tc/, /w:r/...).
target
  • document (default)
  • header
  • footer
reference To be used with header and footer targets: positions (array) 1, 2... based on the sectPr contents order, sections (array) 1, 2..., types (array) first, even, default
customQuery Custom xpath query, overwrites any other reference.
Code samples

Example #1

Release notes
  • phpdocx 18.0:
    • new action.