/* Simple BBC News ticker client
 * (c) Darren Salt
 * GPL applies
 * $Id: xml.h,v 1.2 2003/03/15 01:17:05 ds Exp $
 */

#ifndef _Ticker_XML_H
#define _Ticker_XML_H

int parse_xml (char *, const char *const *);

/* Find a given element at this level. */
const char *find_element (const char *doc, const char *elem);

/* Return this element's first child object. */
const char *first_child_element (const char *doc);

/* Return the next element at this level. */
const char *next_element (const char *doc);

/* Return the next text node at this level. */
const char *next_text (const char *doc);

/* Return the text if this is a text node. */
const char *get_text (const char *doc);

/* Non-zero if at the end of the XML */
int is_end_of_xml (const char *doc);

#endif
