Search for usage in LXR

KItinerary::HtmlElement Class Reference

#include <htmldocument.h>


QString content
KItinerary::HtmlElement firstChild
bool isNull
QString name
KItinerary::HtmlElement nextSibling
KItinerary::HtmlElement parent
QString recursiveContent

Public Member Functions

Q_INVOKABLE QString attribute (const QString &attr) const
QStringList attributes () const
QString content () const
Q_INVOKABLE QVariant eval (const QString &xpath) const
HtmlElement firstChild () const
bool hasAttribute (const QString &attr) const
bool isNull () const
QString name () const
HtmlElement nextSibling () const
bool operator== (const HtmlElement &other) const
HtmlElement parent () const
QString recursiveContent () const

Detailed Description

HTML document element.

Definition at line 23 of file htmldocument.h.

Member Function Documentation

QString HtmlElement::attribute ( const QString attr) const

Value of the attribute attr.

Definition at line 70 of file htmldocument.cpp.

QStringList HtmlElement::attributes ( ) const

Returns the list of all attributes of this node.

Definition at line 311 of file htmldocument.cpp.

QString KItinerary::HtmlElement::content ( ) const

Returns the content of this element.

That is, all text nodes that are immediate children of this element. The content is trimmed from leading or trailing whitespaces.

QVariant HtmlElement::eval ( const QString xpath) const

Evaluate an XPath expression relative to this node.

Definition at line 245 of file htmldocument.cpp.

HtmlElement KItinerary::HtmlElement::firstChild ( ) const

Returns the first child element of this node.

bool HtmlElement::hasAttribute ( const QString attr) const

Checks whether an attribute with name attr exists.

Definition at line 290 of file htmldocument.cpp.

bool KItinerary::HtmlElement::isNull ( ) const

Check if the element is null.

QString KItinerary::HtmlElement::name ( ) const

The element name.

HtmlElement KItinerary::HtmlElement::nextSibling ( ) const

Returns the next sibling element of this node.

bool HtmlElement::operator== ( const HtmlElement other) const

Checks if two HtmlElement instances refer to the same DOM node.

Definition at line 329 of file htmldocument.cpp.

HtmlElement KItinerary::HtmlElement::parent ( ) const

Returns the parent element of this node.

QString KItinerary::HtmlElement::recursiveContent ( ) const

Returns the content of this element and all its children.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:05:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.