2006-12-03 Dimitris Glezos <dimitris@glezos.com>
[dia.git] / lib / dia_xml_libxml.h
blob47f2ff7eee5f5672f275ca6590b23062c41c285b
1 /* Dia -- an diagram creation/manipulation program
3 * Prototypes which went in the way when trying to compile files without
4 * pulling in the whole libxml includes.
5 * Copyright (C) 2001, C. Chepelov <chepelov@calixo.net>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program 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 General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #ifndef DIA_XML_LIBXML_H
22 #define DIA_XML_LIBXML_H
24 #include <libxml/tree.h>
25 #include <libxml/parser.h>
26 #include "dia_xml.h"
28 /* for potentially broken files */
29 xmlDocPtr xmlDiaParseFile(const char *filename);
31 /* use this one instead of xmlParseFile */
32 xmlDocPtr xmlDoParseFile(const char *filename);
34 void warn_about_broken_libxml1(void);
36 /* use this instead of xmlSaveFile/xmlSaveFileEnc. Set the encoding to
37 UTF-8 at the very beginning ! */
38 int xmlDiaSaveFile(const char *filename,
39 xmlDocPtr doc);
40 #endif