syndication/atom
parser.cpp
48 static QDomNode convertNode(QDomDocument& doc, const QDomNode& node, const QHash<QString, QString>& nameMapper);
54 return !root.isNull() && (root.namespaceURI() == atom1Namespace() || root.namespaceURI() == atom0_3Namespace());
103 QDomNode Parser::ParserPrivate::convertNode(QDomDocument& doc, const QDomNode& node, const QHash<QString, QString>& nameMapper)
iterator insert(const Key &key, const T &value)
QDomNode item(int index) const
the content is escaped HTML, (i.e., "<", ">" etc.
Definition: content.h:58
Syndication::SpecificDocumentPtr parse(const Syndication::DocumentSource &source) const
parses either an EntryDocument or a FeedDocument from a document source.
Definition: parser.cpp:57
bool accept(const Syndication::DocumentSource &source) const
returns whether the source looks like an Atom 1.0 or 0.3 document, by checking the root element...
Definition: parser.cpp:51
QString name() const
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
bool isElement() const
QString namespaceURI() const
QDomElement createElementNS(const QString &nsURI, const QString &qName)
QDomNodeList childNodes() const
QDomElement toElement() const
An Atom 1.0 Feed Document, containing metadata describing the feed and a number of entries...
Definition: document.h:57
the content is base64-encoded binary content
Definition: content.h:61
void setAttributeNS(const QString nsURI, const QString &qName, const QString &value)
int count() const
QString localName() const
bool hasAttribute(const QString &name) const
Definition: parser.h:29
void setAttribute(const QString &name, const QString &value)
bool isEmpty() const
int count() const
QDomNode namedItem(const QString &name) const
QString value() const
bool isNull() const
static Format mapTypeToFormat(const QString &type, const QString &src=QString())
maps a mimetype to Format enum according to the Atom 1.0 specification
Definition: content.cpp:90
QDomNode cloneNode(bool deep) const
QString format() const
returns the format string for this parser implementation, which is "atom"
Definition: parser.cpp:98
QDomAttr toAttr() const
bool contains(const Key &key) const
QDomNode item(int index) const
An Atom 1.0 Entry Document, containing a single Atom entry outside of the context of a feed...
Definition: document.h:202
QDomDocument toDocument() const
QDomNamedNodeMap attributes() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.