An element in DOMDocument. More...
#include <Valuable/DOMElement.hpp>
Public Types | |
| typedef std::list< DOMElement > | NodeList |
| 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. | |
| DOMElement & | operator= (DOMElement &&) |
| DOMElement & | operator= (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 |
An element in DOMDocument.
| typedef std::list<DOMElement> Valuable::DOMElement::NodeList |
A list of DOM elements.
| QString Valuable::DOMElement::getTextContent | ( | ) | const |
Gets the text content of this element.