3 * Copyright (C) 2003-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of libglabels.
7 * libglabels is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * libglabels is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with libglabels. If not, see <http://www.gnu.org/licenses/>.
25 #include <libxml/tree.h>
29 #define LGL_XML_NAME_SPACE "http://snaught.com/glabels/2.2/"
34 * Get property functions
36 gchar * lgl_xml_get_prop_string (xmlNodePtr node,
37 const gchar *property,
38 const gchar *default_val);
40 gchar * lgl_xml_get_prop_i18n_string (xmlNodePtr node,
41 const gchar *property,
42 const gchar *default_val);
44 gdouble lgl_xml_get_prop_double (xmlNodePtr node,
45 const gchar *property,
48 gboolean lgl_xml_get_prop_boolean (xmlNodePtr node,
49 const gchar *property,
50 gboolean default_val);
52 gint lgl_xml_get_prop_int (xmlNodePtr node,
53 const gchar *property,
56 guint lgl_xml_get_prop_uint (xmlNodePtr node,
57 const gchar *property,
60 gdouble lgl_xml_get_prop_length (xmlNodePtr node,
61 const gchar *property,
66 * Set property functions
68 void lgl_xml_set_prop_string (xmlNodePtr node,
69 const gchar *property,
72 void lgl_xml_set_prop_double (xmlNodePtr node,
73 const gchar *property,
76 void lgl_xml_set_prop_boolean (xmlNodePtr node,
77 const gchar *property,
80 void lgl_xml_set_prop_int (xmlNodePtr node,
81 const gchar *property,
84 void lgl_xml_set_prop_uint_hex (xmlNodePtr node,
85 const gchar *property,
88 void lgl_xml_set_prop_length (xmlNodePtr node,
89 const gchar *property,
93 * Other node functions
95 gboolean lgl_xml_is_node (xmlNodePtr node,
98 gchar * lgl_xml_get_node_content (xmlNodePtr node);
103 void lgl_xml_set_default_units (lglUnits units);
108 #endif /* __XML_H__ */
113 * Local Variables: -- emacs
115 * c-basic-offset: 8 -- emacs
116 * tab-width: 8 -- emacs
117 * indent-tabs-mode: nil -- emacs