## XML Vendor Functions

XML Vendor Functions — Functions to parse glabels XML vendor descriptions

## Synopsis

    #include <libglabels/lgl-xml-vendor.h>

    GList *             lgl_xml_vendor_read_vendors_from_file
                                                            (gchar *utf8_filename);
    GList *             lgl_xml_vendor_parse_vendors_doc    (xmlDocPtr vendors_doc);
    lglVendor *         lgl_xml_vendor_parse_vendor_node    (xmlNodePtr vendor_node);

## Description

This section describes several functions for parsing vendor XML description files.

## Details

### lgl_xml_vendor_read_vendors_from_file ()

    GList *             lgl_xml_vendor_read_vendors_from_file
                                                            (gchar *utf8_filename);

Read vendor definitions from a file.

`utf8_filename` : | Filename of vendors file (name encoded as UTF-8)
Returns : | a list of lglVendor structures.

### lgl_xml_vendor_parse_vendors_doc ()

    GList *             lgl_xml_vendor_parse_vendors_doc    (xmlDocPtr vendors_doc);

Read vendor definitions from a libxml xmlDocPtr tree.

`vendors_doc` : | libxml xmlDocPtr tree, representing a vendors definition file.
Returns : | a list of lglVendor structures.

### lgl_xml_vendor_parse_vendor_node ()

    lglVendor *         lgl_xml_vendor_parse_vendor_node    (xmlNodePtr vendor_node);

Read a single vendor definition from a libxml xmlNodePtr node.

`vendor_node` : | libxml xmlNodePtr vendor node from a xmlDocPtr tree.
Returns : | a pointer to a newly created lglVendor structure.