Search for usage in LXR

KItinerary::HtmlElement Class Reference

#include <htmldocument.h>


QString content
KItinerary::HtmlElement firstChild
bool isNull
KItinerary::HtmlElement nextSibling
KItinerary::HtmlElement parent
QString READ
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
HtmlElement nextSibling () const
bool operator== (const HtmlElement &other) const
HtmlElement parent () const
 QString () const
QString recursiveContent () const

Detailed Description

HTML document element.

Definition at line 23 of file htmldocument.h.

Member Function Documentation

◆ attribute()

QString HtmlElement::attribute ( const QString attr) const

Value of the attribute attr.

Definition at line 71 of file htmldocument.cpp.

◆ attributes()

QStringList HtmlElement::attributes ( ) const

Returns the list of all attributes of this node.

Definition at line 330 of file htmldocument.cpp.

◆ content()

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.

◆ eval()

QVariant HtmlElement::eval ( const QString xpath) const

Evaluate an XPath expression relative to this node.

Definition at line 264 of file htmldocument.cpp.

◆ firstChild()

HtmlElement KItinerary::HtmlElement::firstChild ( ) const

Returns the first child element of this node.

◆ hasAttribute()

bool HtmlElement::hasAttribute ( const QString attr) const

Checks whether an attribute with name attr exists.

Definition at line 309 of file htmldocument.cpp.

◆ isNull()

bool KItinerary::HtmlElement::isNull ( ) const

Check if the element is null.

◆ nextSibling()

HtmlElement KItinerary::HtmlElement::nextSibling ( ) const

Returns the next sibling element of this node.

◆ operator==()

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

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

Definition at line 348 of file htmldocument.cpp.

◆ parent()

HtmlElement KItinerary::HtmlElement::parent ( ) const

Returns the parent element of this node.

◆ QString()

KItinerary::HtmlElement::QString ( ) const

The element name.

◆ recursiveContent()

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-2023 The KDE developers.
Generated on Thu Sep 28 2023 04:00:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.