2 * (LIBGLABELS) Template library for GLABELS
4 * xml-template.h: template xml module header file
6 * Copyright (C) 2001-2004 Jim Evins <evins@snaught.com>.
8 * This file is part of the LIBGLABELS library.
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
26 #ifndef __XML_TEMPLATE_H__
27 #define __XML_TEMPLATE_H__
30 #include <libxml/tree.h>
36 GList *lgl_xml_template_read_templates_from_file (const gchar *utf8_filename);
38 GList *lgl_xml_template_parse_templates_doc (const xmlDocPtr templates_doc);
40 lglTemplate *lgl_xml_template_parse_template_node (const xmlNodePtr template_node);
43 gint lgl_xml_template_write_templates_to_file (GList *templates,
44 const gchar *utf8_filename);
46 gint lgl_xml_template_write_template_to_file (const lglTemplate *template,
47 const gchar *utf8_filename);
49 void lgl_xml_template_create_template_node (const lglTemplate *template,
55 #endif /* __XML_TEMPLATE_H__ */