17.2 Instruction File Examples
Let us take a few examples to understand how Instruction Files work in Documentum.
17.2.1 Deleting an XML Element from an XML File with <delete-element>
Let us walk through a very simple example where content is created from a simple template XML file and later an XML element is removed from the template file. The existing content is updated via a simple Instruction File using the <delete-element>
instruction.
1. Create a Template file (
Original_Template.xml
) and its associated Rules file (Original_TemplateRules.xml
) as per the following structure:Template File
Original_Template.xml
:<?xml version="1.0" encoding="UTF-8"?> <PRODUCTINFO> <NAME/> <SHORTDESC/> <COST/> <PRODUCTTYPE/> </PRODUCTINFO> <?xml version="1.0" encoding="UTF-8"?> <rules> <tagcontent tag_name="NAME"> <textline instruction="Please enter a name" label="Product name:" required="Y"> </textline> </tagcontent>...