6.0.0-rc4Source

QXmlStreamEntityResolver Class

The QXmlStreamEntityResolver class provides an entity resolver for a QXmlStreamReader. More…

Header#include <QXmlStreamEntityResolver>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

List of all members, including inherited members

Public Functions

virtual ~QXmlStreamEntityResolver()
virtual QStringresolveEntity(const QString &publicId, const QString &systemId)
virtual QStringresolveUndeclaredEntity(const QString &name)

Detailed Description

A program that knows the entities of a document type that the document itself does not declare, as those of HTML, subclasses the resolver, returns their text from resolveUndeclaredEntity(), and gives the resolver to the reader with QXmlStreamReader::setEntityResolver().

Differences from Qt

resolveEntity() is never called, as the reader does not read external entities.

Member Function Documentation

[virtual] QXmlStreamEntityResolver::~QXmlStreamEntityResolver()

Destroys the resolver.

[virtual] QString QXmlStreamEntityResolver::resolveEntity(const QString &publicId, const QString &systemId)

Returns the text of the external entity with the identifiers publicId and systemId. The default implementation returns an empty string.

[virtual] QString QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString &name)

Returns the text that stands for the entity name, which the document does not declare, or an empty string if the resolver does not know it. The text is read as part of the document, so it may hold elements. The default implementation returns an empty string.