1 /*****************************************************************************
2 * xlist.h : a trivial parser for XML-like tags (header file)
3 *****************************************************************************
4 * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research
5 * Organisation (CSIRO) Australia
6 * Copyright (C) 2000-2004 the VideoLAN team
10 * Authors: Conrad Parker <Conrad.Parker@csiro.au>
11 * Andre Pang <Andre.Pang@csiro.au>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
26 *****************************************************************************/
33 XTag * xtag_new_parse (const char * s, int n);
35 char * xtag_get_name (XTag * xtag);
37 char * xtag_get_pcdata (XTag * xtag);
39 char * xtag_get_attribute (XTag * xtag, const char * attribute);
41 XTag * xtag_first_child (XTag * xtag, const char * name);
43 XTag * xtag_next_child (XTag * xtag, char * name);
45 XTag * xtag_free (XTag * xtag);
47 int xtag_snprint (char * buf, int n, XTag * xtag);
49 #endif /* __XTAG_H__ */