All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Valuable::DOMElement Class Reference

An element in DOMDocument. More...

#include <Valuable/DOMElement.hpp>

Public Types

typedef std::list< DOMElementNodeList
 A list of DOM elements. More...
 

Public Member Functions

void appendChild (const DOMElement &element)
 Appends another element as a child.
 
 DOMElement (const DOMElement &)
 Constructs a copy.
 
 DOMElement (DOMElement &&)
 
void dumpInfo (FILE *, int recursion=0)
 Dumps this elements into the given file.
 
QString getAttribute (const QString &name) const
 Returns the value of an attribute.
 
DOMElement getChildNode (const QString &tagname)
 Gets a child element with the given name.
 
NodeList getChildNodes () const
 Gets a list of child elements.
 
QString getTagName () const
 Gets the tag name of the element.
 
QString getTextContent () const
 Gets the text content of this element. More...
 
bool hasAttribute (const QString &name) const
 Checks if this element has an attribute of the given name.
 
bool isNull () const
 Checks if this is a null element.
 
DOMElementoperator= (DOMElement &&)
 
DOMElementoperator= (const DOMElement &)
 Copies an element.
 
NodeList selectChildNodes (const QString &tagname) const
 Gets a list of child elements with the given name.
 
void setAttribute (const QString &name, const QString &value)
 Sets an attribute for the element.
 
void setTagName (const QString &name)
 
void setTextContent (const QString &content)
 Sets the text content of this element.
 

Friends

class DOMDocument
 

Detailed Description

An element in DOMDocument.

Member Typedef Documentation

A list of DOM elements.

Member Function Documentation

QString Valuable::DOMElement::getTextContent ( ) const

Gets the text content of this element.

Returns
The text content of this element