Syndication Library
elementwrapper.h
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:294
QString xmlBase() const
returns the xml:base value to be used for the wrapped element.
Definition elementwrapper.cpp:91
QString text() const
Returns the wrapped element's text or an empty string.
Definition elementwrapper.cpp:274
QString extractElementText(const QString &tagName) const
extracts the text from a child element, ignoring namespaces.
Definition elementwrapper.cpp:173
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:237
bool operator==(const ElementWrapper &other) const
compares two wrappers.
Definition elementwrapper.cpp:76
QString completeURI(const QString &uri) const
completes relative URIs with a prefix specified via xml:base.
Definition elementwrapper.cpp:137
bool isNull() const
returns whether the wrapped element is a null element
Definition elementwrapper.cpp:81
bool hasAttribute(const QString &name) const
Returns true if this element has an attribute called name; otherwise returns false.
Definition elementwrapper.cpp:289
QString xmlLang() const
returns the xml:lang value to be used for the wrapped element.
Definition elementwrapper.cpp:147
QString childNodesAsXML() const
returns the child nodes of the wrapped element as XML.
Definition elementwrapper.cpp:217
QList< QDomElement > elementsByTagName(const QString &tagName) const
returns all child elements with tag name tagName Contrary to QDomElement::elementsByTagName() only di...
Definition elementwrapper.cpp:222
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:256
ElementWrapper & operator=(const ElementWrapper &other)
Assigns another element wrapper to this one.
Definition elementwrapper.cpp:70
QString attribute(const QString &name, const QString &defValue=QString()) const
Returns the attribute called name.
Definition elementwrapper.cpp:279
QString extractElementTextNS(const QString &namespaceURI, const QString &localName) const
extracts the text from a child element, respecting namespaces.
Definition elementwrapper.cpp:179
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:284
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.