getDocxPathQueryInfo

getDocxPathQueryInfo

ADVANCED / PREMIUM TRIAL

Gets information from a performed DOCXPath query.

Description
public getDocxPathQueryInfo (array $referenceNode)
Parameters

referenceNode

An array to get the refence node.
The possible keys and values of this array are:

key Type Description
type string * (all, default value), bookmark, break, chart, endnote (content reference), footnote (content reference), image, list, paragraph (also for lists and links), section, shape, table, tracking-insert, tracking-delete, tracking-run-style, tracking-paragraph-style, tracking-table-style, tracking-table-grid, tracking-table-row.
contains string Contains a text string.
occurrence int Number of occurrence from 1.
attributes array Contains a specific attribute key and value.
parent string 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 string Target content: document (default), header, footer.
reference array 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 string Custom xpath query, overwrites any other reference.
Return values

array

Exceptions

Method not available.

Code samples

Example #1

Example #2