Here is the data structure we have created

list 'fab:lotid' = {
  attr 'xmlns:fab' = {"http://www.w3.org/TR/html4/"},
  attr 'id' = {"F12345.1"},
  str 'part' = {
    "AZ00000.11"
  },
  list 'components' = {
    attr 'qty' = {"3"},
    str 'wafer' = {
      "F12345.1"
    },
    str 'wafer' = {
      "F12345.2"
    },
    str 'wafer' = {
      "F12345.3"
    }
    
  },
  list 'customer' = {},
  list 'comment' = {
    attr 'font' = {"Arial"},
    attr 'size' = {"12"},
    "This is a comment."
  }
  
};

Traversing fab:lotid

Count of fab:lotid is 6
Value of 'xmlns:fab' is 'http://www.w3.org/TR/html4/', type = attr
Value of 'id' is 'F12345.1', type = attr
Value of 'part' is 'AZ00000.11', type = str
Count of fab:lotid.'components' is 4
Value of 'qty' is '3', type = attr
Value of 'wafer' is 'F12345.1', type = str
Value of 'wafer' is 'F12345.1', type = str
Value of 'wafer' is 'F12345.1', type = str
Count of fab:lotid.'comment' is 3
Value of 'font' is 'Arial', type = attr
Value of 'size' is '12', type = attr
Value of 'This is a comment.' is 'This is a comment.', type = str