InsertXmlInstruction
Configuration file |
None. Configuration is done directly with a string in field "Config file". |
Class name |
com.ebd.hub.datawizard.postexec.InsertXmlInstruction |
Description
This postexecuter allows the replacement of the XML placeholder tag
<xmlInstruction/> |
or optionally
<xmlInstruction></xmlInstruction> |
in an XML output file with another XML piece. The replacement text is either entered directly in the "Config file" field (of the postexecuter) or the name of a variable containing the replacement text is entered (see example below).
Note: You have to make sure that the end result is a valid XML file. A validation is not carried out by the postexecuter.
Note: Basically, the postexecuter is only meant to insert processing instructions, since this cannot be done with the XML Integration Units.
Example
Assume the following XML file
<?
xml
version
=
"1.0"
encoding
=
"utf8"
?>
<
data
>
<
xmlInstruction
/>
<
company
>Lobster</
company
>
</
data
>
and the variable "var__myInstructions" with content
<?edp fopmode 1?><?edp updatemode STRICT?> |
in the field "Config file" of the postexecuter.
After the execution of the postexecuter, you will get the following XML file.
<?
xml
version
=
"1.0"
encoding
=
"utf8"
?>
<
data
>
<?
edp
fopmode 1?><?
edp
updatemode STRICT?>
<
company
>Lobster</
company
>
</
data
>