Oracle WMS File Definition

This section describes the content of the Oracle WMS file. Oracle defines the XML format so that the XML contents can be understood, parsed, and then printed as a label.

The XML Document Type Definition (DTD) defines its XML tags to be used in an XML file. Oracle generates XML files according to this DTD and so does the 3rd party software translate the XML according to this DTD.

XML DTD

The below shown example is the XML DTD that is used in forming the XML for both the synchronous and asynchronous XML formats. DTD defines the elements that are used in the XML file, a list of their attributes, and the next level elements.

<!ELEMENT labels (label)*>
<!ATTLIST labels _FORMAT CDATA #IMPLIED>
<!ATTLIST labels _JOBNAME CDATA #IMPLIED>
<!ATTLIST labels _QUANTITY CDATA #IMPLIED>
<!ATTLIST labels _PRINTERNAME CDATA #IMPLIED>
<!ELEMENT label (variable)*>
<!ATTLIST label _FORMAT CDATA #IMPLIED>
<!ATTLIST label _JOBNAME CDATA #IMPLIED>
<!ATTLIST label _QUANTITY CDATA #IMPLIED>
<!ATTLIST label _PRINTERNAME CDATA #IMPLIED>
<!ELEMENT variable (#PCDATA)>
<!ATTLIST variable name CDATA #IMPLIED>

Sample Oracle XML

This is the Oracle XML providing data for a single label (there is just one <label> element).

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels _FORMAT ="Serial.nlbl" _QUANTITY="1" _PRINTERNAME="" _JOBNAME="Serial">
     <label>
         <variable name= "item">O Ring</variable>
         <variable name= "revision">V1</variable>
         <variable name= "lot">123</variable>
         <variable name= "serial_number">12345</variable>
         <variable name= "lot_status">123</variable>
         <variable name= "serial_number_status">Active</variable>
         <variable name= "organization">A1</variable>
     </label>
</labels>

When executing this sample Oracle XML file, the label serial.nlbl is printed with the following variable values.

Variable Name

Variable Value

item

O Ring

revision

V1

lot

123

serial_number

12345

lot_status

123

serial_number_status

Active

organization

A1

The label will be printed in a single 1 copy, with the spooler job name Serial. The printer name is not specified in the XML file, so the label will print to the printer as defined in the label template.