php processing instruction

Download exampleRun example
A processing instruction is a node that looks like: <?target data?>. More details here. If you set the target to 'php' (<?php //your code here?>) XMS will use the code to create a function (with $el parameter that is the parent node of the processing instruction) and execute it. If this function returns any value, it will be used to replace the processing instruction node. These php processing instructions are executed by XMS in the order of appearance in the xml tree

Context: anywhere in /app

- yes, these are the same processing instructions that hold the code in any standard text based php application however, note that XMS is an xml framework therefore these directives work independently one from each other and not like in standard php applications;