Forum


Replies: 5   Views: 2242
Searchandreplace by bland space does not work
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 20-02-2019 - 10:29

Hello,

You can get the node element using the getDOCXPathQueryInfo method (https://www.phpdocx.com/api-documentation/docx-path/get-docx-path-query-info) querying by the placeholder. This method returns an array with three keys: elements, length and query. You can get the XML value of the DOM node through the elements content, do the needed changes to the XML and replace the source node by the one as raw WordML content (https://www.phpdocx.com/api-documentation/word-content/add-raw-wordml-Word-document).

Regards.