Syndication
elementwrapper.cpp
48 d->ownerDoc = element.ownerDocument(); // keep a copy of the (shared, thus cheap) document around to ensure the element isn't deleted too early (Bug 190068)
162 QString ElementWrapper::extractElementTextNS(const QString &namespaceURI, const QString &localName) const
218 QDomElement ElementWrapper::firstElementByTagNameNS(const QString &nsURI, const QString &localName) const
236 QList<QDomElement> ElementWrapper::elementsByTagNameNS(const QString &nsURI, const QString &localName) const
void append(const T &value)
QString text() const const
QDomElement toElement() const const
WriteOnly
QString extractElementText(const QString &tagName) const
extracts the text from a child element, ignoring namespaces.
Definition: elementwrapper.cpp:156
QString tagName() const const
bool hasAttribute(const QString &name) const
Returns true if this element has an attribute called name; otherwise returns false.
Definition: elementwrapper.cpp:269
QDomNode parentNode() const const
int count(const T &value) const const
bool isNull() const const
QString trimmed() const const
QString url(QUrl::FormattingOptions options) const const
ElementWrapper & operator=(const ElementWrapper &other)
Assigns another element wrapper to this one.
Definition: elementwrapper.cpp:57
Definition: atom/document.h:17
QString attributeNS(const QString nsURI, const QString &localName, const QString &defValue) const const
QString attributeNS(const QString &nsURI, const QString &localName, const QString &defValue=QString()) const
Returns the attribute with the local name localName and the namespace URI nsURI.
Definition: elementwrapper.cpp:264
QString namespaceURI() const const
QDomElement firstElementByTagNameNS(const QString &nsURI, const QString &tagName) const
searches the direct children of the wrapped element for an element with a given namespace and tag nam...
Definition: elementwrapper.cpp:218
QString xmlBase() const
returns the xml:base value to be used for the wrapped element.
Definition: elementwrapper.cpp:78
bool isValid() const const
QList< QDomElement > elementsByTagNameNS(const QString &nsURI, const QString &tagName) const
returns all child elements with tag name tagname and namespace URI nsURI.
Definition: elementwrapper.cpp:236
QString localName() const const
bool isEmpty() const const
QString attribute(const QString &name, const QString &defValue=QString()) const
Returns the attribute called name.
Definition: elementwrapper.cpp:259
QString extractElementTextNS(const QString &namespaceURI, const QString &localName) const
extracts the text from a child element, respecting namespaces.
Definition: elementwrapper.cpp:162
QDomDocument ownerDocument() const const
bool isNull() const
returns whether the wrapped element is a null element
Definition: elementwrapper.cpp:68
bool hasAttributeNS(const QString &nsURI, const QString &localName) const const
bool isEmpty() const const
bool operator==(const ElementWrapper &other) const
compares two wrappers.
Definition: elementwrapper.cpp:63
QDomNodeList childNodes() const const
QUrl resolved(const QUrl &relative) const const
QString text() const
Returns the wrapped element's text or an empty string.
Definition: elementwrapper.cpp:254
QList< QDomElement > elementsByTagName(const QString &tagName) const
returns all child elements with tag name tagName Contrary to QDomElement::elementsByTagName() only di...
Definition: elementwrapper.cpp:204
QString childNodesAsXML() const
returns the child nodes of the wrapped element as XML.
Definition: elementwrapper.cpp:199
void setAttributeNS(const QString nsURI, const QString &qName, const QString &value)
QString xmlLang() const
returns the xml:lang value to be used for the wrapped element.
Definition: elementwrapper.cpp:132
QString completeURI(const QString &uri) const
completes relative URIs with a prefix specified via xml:base.
Definition: elementwrapper.cpp:121
bool isElement() const const
T takeLast()
bool hasAttributeNS(const QString &nsURI, const QString &localName) const
Returns true if this element has an attribute with the local name localName and the namespace URI nsU...
Definition: elementwrapper.cpp:274
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:59:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:59:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.