1 Reply Latest reply: Apr 13, 2012 1:16 PM by AlexAnd RSS

    I have to print two labels using single XML file.Error:Only one top level e

    918769
      Hi,

      I have to print two labels using single XML file. But its giving error:

      [Error] Error -1072896683 - Line: 38 Pos: 2 Error: Only one top level element is allowed in an XML document.


      Below is my XMl file:

      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE labels SYSTEM "label.dtd">
      <labels FORMAT="lib://FRD/PurchasedDoor.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
      <label>
      <variable name= "Color">AUTUMN</variable>
      <variable name= "Special_Message_Attribute">MSG*</variable>
      <variable name= "Special_Message">This is special Message Label</variable>
      <variable name= "Model"></variable>
      <variable name= "Build_Date">09-APR-12</variable>
      <variable name= "Assy_Cart"></variable>
      <variable name= "Assy_Slot"></variable>
      <variable name= "Finish_Cart"></variable>
      <variable name= "Finish_Slot"></variable>
      <variable name= "Serial_Number">1945.1.1.2-1</variable>
      <variable name= "Serial_Number_Barcode">1945.1.1.2-1</variable>
      <variable name= "Specie">BIRCH</variable>
      <variable name= "Truck_Group"></variable>
      <variable name= "Label_Sequence_No">1</variable>
      <variable name= "WIP_Cart"></variable>
      <variable name= "WIP_Slot"></variable>
      <variable name= "Cabinet_Sequence_No">110</variable>
      <variable name= "JC"></variable>
      <variable name= "Thickness"> </variable>
      <variable name= "Width"> </variable>
      <variable name= "Length"> </variable>
      <variable name= "Overlay"></variable>
      <variable name= "Options">B30</variable>
      <variable name= "Profile_No"></variable>
      <variable name= "Door_Style">NEWBERRY</variable>
      <variable name= "Glaze"></variable>
      <variable name= "Shape"></variable>
      <variable name= "Glass"></variable>
      <variable name= "Hinge_Side"></variable>
      <variable name= "Hinge_Type"></variable>
      <variable name= "EGE"></variable>
      </label>
      <labels FORMAT="lib://FRD/SpecialMessage.btw"  PRINTERNAME="IBM 6700-R80 (300 dpi)" _QUANTITY="1">
      <label>
      <variable name= "Serial_Number">1945.1.1.2-1</variable>
      <variable name= "Special_Message">This is special Message Label</variable>
      <variable name= "Cabinet_Sequence_No">110</variable>
      </label>
      </labels>

      Please suggest.