/* xmlpp - an xml parser and validator written in C++ (c) 2000 Michael Fink (c) 2001 Karl Pitrich $Id: xmlcommon.h,v 1.2 2001/06/25 15:24:01 pit Exp $ */ /*! \file xmlcommon.hpp common typedefs and enums */ #ifndef __xmlcommom_h__ #define __xmlcommom_h__ //! namespace of the xmlpp project namespace xmlpp { //! dummy define #define XMLPP_API using std::string; //! handle to a tagname string in a tagname map typedef int xmltagnamehandle; //! maps the tagname string to a handle typedef std::map xmltagnamemap; //! maps an entity to a string representation typedef std::map xmlentitymap; //! xml parsing error codes enumeration enum xmlerrorcode { //! unspecified or unknown error xml_unknown = 0, //! error in the infile stream xml_instream_error, //! expected an open tag literal '<' xml_opentag_expected, //! expected a '<' or cdata xml_opentag_cdata_expected, //! expected a '>' closing tag literal xml_closetag_expected, //! expected a processing instruction or doctype tag xml_pi_doctype_expected, //! expected a tag name after '<' or ' xml_nt_leaf, //! document root node xml_nt_document, //! cdata node, which only contains char data xml_nt_cdata, //! dummy node type xml_nt_dummy }; }; // end namespace xmlpp #endif /* vi: set ts=3: */