XML API - pdx:deleteBlock

pdx:deleteBlock/h2>

Deletes a block of content from the Word template.

Note

You are reading the XML API documentation. For the PHP API method please go to deleteBlock.

Description

Element definition

The BLOCK variables are wrappers of content. They are used to remove unwanted parts of the document on "run time".

This method does exactly that: removes a block of content from the Word template that has been previously enclosed between BLOCK tags ($BLOCK_varName$).

Please refer to the Tutorial for a detailed description of the process.

Attributes and sub-elements

variableName

The name of the variable.

Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: