00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2005, 2006, 2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_XML_NODE_H 00021 #define LIBAEGIS_XML_NODE_H 00022 00023 class nstring; // forward 00024 00030 class xml_node 00031 { 00032 public: 00036 virtual ~xml_node(); 00037 00041 xml_node(); 00042 00046 xml_node(const xml_node &); 00047 00051 xml_node &operator=(const xml_node &); 00052 00057 virtual void none(const nstring &name, const nstring &value); 00058 00063 virtual void attribute(const nstring &name, const nstring &value); 00064 00069 virtual void cdata(const nstring &value); 00070 00075 virtual void comment(const nstring &value); 00076 00081 virtual void document(const nstring &value); 00082 00087 virtual void document_fragment(const nstring &value); 00088 00093 virtual void document_type(const nstring &name, const nstring &value); 00094 00099 virtual void element_begin(const nstring &name); 00100 00105 virtual void element_end(const nstring &name); 00106 00111 virtual void entity_begin(const nstring &name, const nstring &value); 00112 00117 virtual void entity_end(const nstring &name, const nstring &value); 00118 00123 virtual void entity_reference(const nstring &name, const nstring &value); 00124 00129 virtual void notation(const nstring &name, const nstring &value); 00130 00136 virtual void processing_instruction(const nstring &name, 00137 const nstring &value); 00138 00144 virtual void significant_whitespace(const nstring &value); 00145 00150 virtual void text(const nstring &value); 00151 00156 virtual void whitespace(const nstring &value); 00157 00162 virtual void xml_declaration(const nstring &name, const nstring &value); 00163 }; 00164 00165 #endif // LIBAEGIS_XML_NODE_H