Salesforce

XML Template Structure (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

XML Template Structure (Magic xpa 4.x)

When XML is specified as the print data output type, Magic xpa displays the data in an XML template where the XML tags are labeled according to the control name.

The XML template should be an XSL file. You are not required to use a template. If a template is used, Magic xpa will add a reference to the XSL file as specified in the Template field in the Print data dialog.

You can add a reference to an XSL file by using the following text:

<?xml-stylesheet type="text/xsl" href="/articles/bl_Reference/sample.xsl.xsl" ?>:

Magic xpa enters the records between the <Print_data> tags and the <Record> tag for each record, as shown below:

<?xml version="1.0" encoding="ISO-8859-1"?>

<Print_data>

<Record>

<Emp_ID>1 </Emp_ID>

<Name>David</Name>

<Email>david@mse.com</Email>

</Record>

<Record>

<Emp_ID>2 </Emp_ID>

<Name>Dan</Name>

<Email>dan@mse.com</Email>

</Record>

<Record>

<Emp_ID>3 </Emp_ID>

<Name>John</Name>

<Emil>John@mse.com</Email>

</Record>

</Print_data>

Reference
Attachment 
Attachment