1QXmlEntityResolver(3qt)                                QXmlEntityResolver(3qt)
2
3
4

NAME

6       QXmlEntityResolver - Interface to resolve external entities contained
7       in XML data
8

SYNOPSIS

10       All the functions in this class are reentrant when Qt is built with
11       thread support.</p>
12
13       #include <qxml.h>
14
15       Inherited by QXmlDefaultHandler.
16
17   Public Members
18       virtual bool resolveEntity ( const QString & publicId, const QString &
19           systemId, QXmlInputSource *& ret ) = 0
20       virtual QString errorString () = 0
21

DESCRIPTION

23       The QXmlEntityResolver class provides an interface to resolve external
24       entities contained in XML data.
25
26       If an application needs to implement customized handling for external
27       entities, it must implement this interface, i.e. resolveEntity(), and
28       register it with QXmlReader::setEntityResolver().
29
30       See also the Introduction to SAX2.
31
32       See also QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler,
33       QXmlErrorHandler, QXmlLexicalHandler, and XML.
34

MEMBER FUNCTION DOCUMENTATION

QString QXmlEntityResolver::errorString () [pure virtual]

37       The reader calls this function to get an error string if any of the
38       handler functions returns FALSE.
39

bool QXmlEntityResolver::resolveEntity ( const QString & publicId, const

41       QString & systemId, QXmlInputSource *& ret ) [pure virtual]
42       The reader calls this function before it opens any external entity,
43       except the top-level document entity. The application may request the
44       reader to resolve the entity itself (ret is 0) or to use an entirely
45       different input source (ret points to the input source).
46
47       The reader deletes the input source ret when it no longer needs it, so
48       you should allocate it on the heap with new.
49
50       The argument publicId is the public identifier of the external entity,
51       systemId is the system identifier of the external entity and ret is the
52       return value of this function. If ret is 0 the reader should resolve
53       the entity itself, if it is non-zero it must point to an input source
54       which the reader uses instead.
55
56       If this function returns FALSE the reader stops parsing and reports an
57       error. The reader uses the function errorString() to get the error
58       message.
59
60

SEE ALSO

62       http://doc.trolltech.com/qxmlentityresolver.html
63       http://www.trolltech.com/faq/tech.html
64
66       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
67       license file included in the distribution for a complete license
68       statement.
69

AUTHOR

71       Generated automatically from the source code.
72

BUGS

74       If you find a bug in Qt, please report it as described in
75       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
76       help you. Thank you.
77
78       The definitive Qt documentation is provided in HTML format; it is
79       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
80       web browser. This man page is provided as a convenience for those users
81       who prefer man pages, although this format is not officially supported
82       by Trolltech.
83
84       If you find errors in this manual page, please report them to qt-
85       bugs@trolltech.com.  Please include the name of the manual page
86       (qxmlentityresolver.3qt) and the Qt version (3.3.8).
87
88
89
90Trolltech AS                    2 February 2007        QXmlEntityResolver(3qt)
Impressum