Main Page   Namespace List   File List   Namespace Members  

libXMLTree.h

00001 // Copyright (C) 2001 Kevin Duffy <kevin@buhbird.com>
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License, or (at your option) any later version.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00016 #ifndef LIBXMLTREE_H
00017 #define LIBXMLTREE_H
00018 
00019 #include <Element.h>
00020 
00022 
00024 namespace libXMLTree
00025 {
00027 
00029   string        GetText(const Element* element);
00030 
00032 
00034   string        GetElementText(const Element* element, const string& elementName);
00035 
00037 
00038   list<string>  GetTextChildren(const Element* element);  
00039 
00041 
00042   ElementList   GetElementChildren(const Element* element);
00043 
00045 
00046   list<Tag*>    GetTagChildren(const Element* element);
00047 
00049 
00053   Element*      GetElementByAttribute(const Element* element, 
00054                                       const string& att, 
00055                                       const string& val);
00056 
00058   Element*      GetElementByName(const Element* element, const string& named) ;
00059 
00061   ElementList   GetChildrenByName(const Element* element, const string& named) ;         
00062 
00064   void Add(Element* element, const string& cdata);
00065 
00067   void Add(Element* element, Element* newChild);  
00068 
00070   void Add(Element* element, Tag* tag);
00071 
00073   void Delete(Element* element, const string& cdata);
00074 
00076   void Delete(Element* element, Element* oldChild);
00077 
00079   void Delete(Element* element, Tag* tag);
00080 };
00081 #endif

Generated at Wed Apr 4 21:33:50 2001 for libXMLTree by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001