I have to create an XML file each month for import to our payroll system with the format below. The data changes each month so I want to put it in Excel and let the payroll staff generate their own XML document after their edits. I have it working using an XSD that I added as a map in Excel with one exception. The second line in the exported XML looks like this: <EmployeePayAdjustmentImport> and I need it to include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" as shown below.
My XSD for that line is
<xs:elementname="EmployeePayAdjustmentImport">
Do I need to add an attribute or is this entirely wrong?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<EmployeePayAdjustmentImport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ReferenceDateRange>
<FromDate>2013-12-01</FromDate>
<ToDate>2013-12-31</ToDate>
</ReferenceDateRange>
<EmployeePayAdjustment>
<EmployeeXrefCode>555</EmployeeXrefCode>
<PayAdjustCodeXrefCode>61</PayAdjustCodeXrefCode>
<PayDate>2013-12-31</PayDate>
<Amount>193.5</Amount>
</EmployeePayAdjustment>
</EmployeePayAdjustmentImport>