code: protected void parseVendors(Document doc) {
      // Parse vendors, we will need those.
      // Format: <vendor vendor-id="TGPP" code="10415" name="3GPP" />
      NodeList vendorNodes = doc.getElementsByTagName("vendor");
  
      for (int v = 0; v < vendorNodes.getLength(); v++) {
        Node vendorNode = vendorNodes.item(v);
        if (vendorNode.getNodeType() == Node.ELEMENT_NODE) {
          Element vendorElement = (Element) vendorNode;
  
          // Get the Code (number) and ID (string)
          String vendorCode = vendorElement.getAttribute("code");
          String vendorId = vendorElement.getAttribute("vendor-id");
  
          vendorMap.put(vendorId, vendorCode);
        }
      }
    }
docs: Parses the <vendor /> attributes from a Dictionary XML Document
  
  @param doc the DOM object representing the XML Document with the Dictionary definitions