lib

KoXmlElement Class Reference

#include <KoXmlReader.h>

Inheritance diagram for KoXmlElement:
KoXmlNode

Public Member Functions

 KoXmlElement (const KoXmlElement &element)
KoXmlElement & operator= (const KoXmlElement &element)
bool operator== (const KoXmlElement &) const
bool operator!= (const KoXmlElement &) const
TQString tagName () const
TQString text () const
virtual bool isElement () const
TQString attribute (const TQString &name) const
TQString attribute (const TQString &name, const TQString &defaultValue) const
TQString attributeNS (const TQString &namespaceURI, const TQString &localName, const TQString &defaultValue) const
bool hasAttribute (const TQString &name) const
bool hasAttributeNS (const TQString &namespaceURI, const TQString &localName) const
Public Member Functions inherited from KoXmlNode
 KoXmlNode (const KoXmlNode &node)
KoXmlNode & operator= (const KoXmlNode &node)
bool operator== (const KoXmlNode &) const
bool operator!= (const KoXmlNode &) const
virtual KoXmlNode::NodeType nodeType () const
virtual bool isNull () const
virtual bool isText () const
virtual bool isCDATASection () const
virtual bool isDocument () const
void clear ()
KoXmlElement toElement ()
KoXmlText toText ()
KoXmlCDATASection toCDATASection ()
KoXmlDocument toDocument ()
virtual TQString nodeName () const
virtual TQString namespaceURI () const
virtual TQString prefix () const
virtual TQString localName () const
KoXmlDocument ownerDocument () const
KoXmlNode parentNode () const
bool hasChildNodes () const
KoXmlNode firstChild () const
KoXmlNode lastChild () const
KoXmlNode nextSibling () const
KoXmlNode previousSibling () const
KoXmlNode namedItem (const TQString &name) const
KoXmlNode namedItemNS (const TQString &nsURI, const TQString &name) const
void load (int depth=1)
void unload ()

Friends

class KoXmlNode
class KoXmlDocument

Additional Inherited Members

Public Types inherited from KoXmlNode
enum  NodeType {
  NullNode = 0 , ElementNode , TextNode , CDATASectionNode ,
  ProcessingInstructionNode , DocumentNode
}
Protected Member Functions inherited from KoXmlNode
 KoXmlNode (KoXmlNodeData *)
Protected Attributes inherited from KoXmlNode
KoXmlNodeData * d

Detailed Description

KoXmlElement represents a tag element in a DOM tree.

KoXmlElement holds information about an XML tag, along with its attributes.

Author
Ariya Hidayat ariya.nosp@m.@kde.nosp@m..org

Definition at line 140 of file KoXmlReader.h.

Constructor & Destructor Documentation

◆ KoXmlElement() [1/2]

KoXmlElement::KoXmlElement ( )

Definition at line 1219 of file KoXmlReader.cpp.

◆ KoXmlElement() [2/2]

KoXmlElement::KoXmlElement ( const KoXmlElement & element)

Definition at line 1232 of file KoXmlReader.cpp.

◆ ~KoXmlElement()

KoXmlElement::~KoXmlElement ( )
virtual

Definition at line 1225 of file KoXmlReader.cpp.

Member Function Documentation

◆ attribute() [1/2]

TQString KoXmlElement::attribute ( const TQString & name) const

Definition at line 1281 of file KoXmlReader.cpp.

◆ attribute() [2/2]

TQString KoXmlElement::attribute ( const TQString & name,
const TQString & defaultValue ) const

Definition at line 1286 of file KoXmlReader.cpp.

◆ attributeNS()

TQString KoXmlElement::attributeNS ( const TQString & namespaceURI,
const TQString & localName,
const TQString & defaultValue ) const

Definition at line 1298 of file KoXmlReader.cpp.

◆ hasAttribute()

bool KoXmlElement::hasAttribute ( const TQString & name) const

Definition at line 1310 of file KoXmlReader.cpp.

◆ hasAttributeNS()

bool KoXmlElement::hasAttributeNS ( const TQString & namespaceURI,
const TQString & localName ) const

Definition at line 1315 of file KoXmlReader.cpp.

◆ isElement()

bool KoXmlElement::isElement ( ) const
virtual

Reimplemented from KoXmlNode.

Definition at line 1276 of file KoXmlReader.cpp.

◆ operator!=()

bool KoXmlElement::operator!= ( const KoXmlElement & element) const

Definition at line 1259 of file KoXmlReader.cpp.

◆ operator=()

KoXmlElement & KoXmlElement::operator= ( const KoXmlElement & element)

Definition at line 1247 of file KoXmlReader.cpp.

◆ operator==()

bool KoXmlElement::operator== ( const KoXmlElement & element) const

Definition at line 1253 of file KoXmlReader.cpp.

◆ tagName()

TQString KoXmlElement::tagName ( ) const

Definition at line 1266 of file KoXmlReader.cpp.

◆ text()

TQString KoXmlElement::text ( ) const

Definition at line 1271 of file KoXmlReader.cpp.

◆ KoXmlDocument

friend class KoXmlDocument
friend

Definition at line 163 of file KoXmlReader.h.

◆ KoXmlNode

friend class KoXmlNode
friend

Definition at line 162 of file KoXmlReader.h.


The documentation for this class was generated from the following files: