Generating a mapping XML file for a label

The GenLabelMappingXML.java tool is used to generate Mapping XML for a label designed using Loftware Label Manager. The output XML contains all the field names of the label. XPath bindings for the label fields have to be specified.

About this task

To generate a Mapping XML for a label:

Procedure

  1. Invoke the GenLabelMappingXML tool:
    java -classpath <classpath> 
    com.yantra.tools.labelxmlmapping.GenLabelMappingXML 
    <parameter1> <parameter2>
       

    <parameter1> - File name of the .tab file generated when the label (.lwl) file is saved in Loftware Label Manager.

    The full path, excluding the extension should be specified.

    <parameter2> - File name of the XML file generated by the tool.

    The full path, excluding the extension should be specified.

    For example, to generate a Mapping XML for the label BOL.lwl, the .tab file name is BOL.tab

    Example:

    java -classpath 
    platform_afc.jar;log4j-1.2.12.jar;xercesImpl.jar
    com.yantra.tools.labelxmlmapping.GenLabelMappingXML
    <path-of-the-file>/BOL <path-of-file>/BOLMap
    
  2. Ensure that the classpath has the following jar files:
    • platform_afc.jar
    • log4j-1.2.12.jar
    • xercesImpl.jar
  3. Edit the map file (XML) generated for a label (LWL) to associate the XML data to the fields required on the label and copy it into the Sterling Selling and Fulfillment Foundation Runtime Template folder.