Syndication::Atom
Classes | |
class | Category |
class | Content |
class | Entry |
class | EntryDocument |
class | FeedDocument |
class | Generator |
class | Link |
class | Parser |
class | Person |
class | Source |
Functions | |
QString | atom0_3Namespace () |
QString | atom1Namespace () |
QString | extractAtomText (const Syndication::ElementWrapper &parent, const QString &tagname) |
Detailed Description
Atom parser and model classes, representing Atom 1.0 documents (Atom 0.3 documents are converted by the parser)
Function Documentation
◆ atom0_3Namespace()
SYNDICATION_EXPORT QString Syndication::Atom::atom0_3Namespace | ( | ) |
namespace used by Atom 0.3 elements
Definition at line 21 of file atom/constants.cpp.
◆ atom1Namespace()
SYNDICATION_EXPORT QString Syndication::Atom::atom1Namespace | ( | ) |
namespace used by Atom 1.0 elements
Definition at line 16 of file atom/constants.cpp.
◆ extractAtomText()
QString Syndication::Atom::extractAtomText | ( | const Syndication::ElementWrapper & | parent, |
const QString & | tagname ) |
extracts the content of an atomTextConstruct
.
An atomTextConstruct is an element containing either plain text, escaped html, or embedded XHTML.
TODO: examples
- Parameters
-
parent the parent element to extract from. E.g. an atom:entry element. tagname the child element of parent to extract from the text from. Atom namespace is assumed. Example: <atom:title>
- Returns
- the HTMLized version of the element content. If the content is escaped HTML, the escaped markup is resolved. If it is XHTML, the XHTML content is converted to a string. If it is plain text, characters like "<", ">", "&" are escaped so the return string is valid HTML.
Definition at line 21 of file atomtools.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.