Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsElement.h

Go to the documentation of this file.
00001 /*
00002  * $Id: dsElement.h,v 1.2 2003/02/13 09:22:32 svolokitina Exp $
00003  */
00004 #ifndef dsElement_h
00005 #define dsElement_h
00006 
00007 #include <dsNode.h>
00008 #include <dsAttr.h>
00009 
00010 class dsDocument;
00011 class dsAttr;
00012                               
00013 class dsElement : public dsNode 
00014 {
00015 public:
00016   DOMString   tagName() { return nodeName(); }
00017 
00018   DOMString   getAttribute(DOMString name);
00019   void        setAttribute(DOMString name, DOMString value);
00020   void        setAttribute(DOMString name, int value);
00021   void        removeAttribute(DOMString name);
00022 
00023   dsAttr*       getAttributeNode(DOMString name);
00024   dsAttr*       setAttributeNode(dsAttr* newAttr);
00025   dsAttr*       removeAttributeNode(dsAttr* oldAttr);
00026   bool          hasAttribute(DOMString name);
00027 
00028   dsNodeList*   getElementsByTagName(DOMString name);
00029 
00030   DOMString    getAttributeNS(DOMString namespaceURI, DOMString localName);
00031   void         setAttributeNS(DOMString namespaceURI, DOMString qualifiedName,DOMString value);
00032   void         removeAttributeNS(DOMString namespaceURI, DOMString localName);
00033   dsAttr*      getAttributeNodeNS(DOMString namespaceURI, DOMString localName);
00034   dsAttr*      setAttributeNodeNS(dsAttr* newAttr);
00035   dsNodeList   getElementsByTagNameNS(DOMString namespaceURI, DOMString localName);
00036   bool         hasAttributeNS(DOMString namespaceURI, DOMString localName);
00037   
00038 
00039   /* internals */
00040 
00041 protected:
00042   DOMString _id;
00043 
00044   dsElement(dsDocument *owner, DOMString name);
00045   dsElement(dsDocument *owner);
00046   ~dsElement();
00047 
00048   friend class dsDocument;
00049   friend class dsAttr;     // to clean namespaceURI and id on attr deletion
00050   friend class dsXMLParser;
00051 };
00052 
00053 
00054 
00055 #endif 

Generated on Mon May 16 18:26:57 2005 for libdms4 by doxygen1.3-rc2