Create an XML schema that identifies the type of data in the XML files, and upload the schema to Prinergy RBA.
The complete syntax is:
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
..<element name="Job">
....<complexType>
......<all minOccurs="1">
........<element name="JobName" type="string" />
........<element name="InputFile" type="string" />
........<element name="ProcessTemplateRefine" type="string" />
........<element name="ProcessTemplateOutput" type="string" />
........<element name="EmailProcessError" type="string" />
........<element name="EmailOutputSuccess" type="string" />
........</all>
....</complexType>
..</element>
</schema>
For information about writing XSDs, see https://www.w3.org/XML/Schema.
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
...
</schema>
<schema>
tag identifies the specific W3C standard that the schema follows.<element name="Job">
...
</element>
<complexType>
...
</complexType>
complex
, which is defined using a separate element inside the job element.<element name="JobName" />
<element name="InputFile" />
<element name="ProcessTemplateRefine" />
<element name="EmailProcessError" />
<element name="EmailOutputSuccess" />
<element name="JobName" type="string" />
<element name="InputFile" type="string" />
<element name="ProcessTemplateRefine" type="string" />
<element name="ProcessTemplateOutput" type="string" />
<element name="EmailProcessError" type="string" />
<element name="EmailOutputSuccess" type="string" />
string
.<all minOccurs="1">
...
</all>
.xsd
.<?xml version="1.0" encoding="utf-8"?>
<Job>
..<JobName>MyJob</JobName>
..<InputFile>\\MyServer\MyFolder\MyCustomerFile.pdf</InputFile>
..<ProcessTemplateRefine>Refine:Refine:1stRef-Normz</
ProcessTemplateRefine>
..<ProcessTemplateOutput>Loose Page Proof:Virtual Proof:Virtual
Proof.LoosePage</ProcessTemplateOutput>
..<EmailProcessError>test@kodak.com</EmailProcessError>
..<EmailOutputSuccess>test@kodak.com</EmailOutputSuccess>
</Job>
.xsd
) file, and click Open. Click Add Schema.You can ignore the TransformFile box, which applies only when the XML files are in JDF format and you must add an .xslt
file that transforms them into the simpler XML format used in RBA.
The schema now appears in the Schema Name list in Rule Parameters Editor for the Read XML action.