⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qxmllexicalhandler.3qt

📁 linux下GUI编程工具qt的在线连接帮助手册
💻 3QT
字号:
'\" t.TH QXmlLexicalHandler 3qt "11 October 2001" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQXmlLexicalHandler \- Interface to report the lexical content of XML data.PP\fC#include <qxml.h>\fR.PPInherited by QXmlDefaultHandler..PP.SS "Public Members".in +1c.ti -1c.BI "virtual bool \fBstartDTD\fR ( const QString & name, const QString & publicId, const QString & systemId )".br.ti -1c.BI "virtual bool \fBendDTD\fR ()".br.ti -1c.BI "virtual bool \fBstartEntity\fR ( const QString & name )".br.ti -1c.BI "virtual bool \fBendEntity\fR ( const QString & name )".br.ti -1c.BI "virtual bool \fBstartCDATA\fR ()".br.ti -1c.BI "virtual bool \fBendCDATA\fR ()".br.ti -1c.BI "virtual bool \fBcomment\fR ( const QString & ch )".br.ti -1c.BI "virtual QString \fBerrorString\fR ()".br.in -1c.SH DESCRIPTIONThe QXmlLexicalHandler class provides an interface to report the lexical content of XML data..PPThe events in the lexical handler apply to the entire document, not just to the document element, and all lexical handler events appear between the content handler's startDocument and endDocument events..PPYou can set the lexical handler with QXmlReader::setLexicalHandler()..PPThis interface's design is based on the the SAX2 extension LexicalHandler..PPThe interface provides startDTD(), endDTD(), startEntity(), endEntity(), startCDATA(), endCDATA() and comment() functions..PPSee also the Introduction to SAX2..PPSee also QXmlDTDHandler, QXmlDeclHandler, QXmlContentHandler, QXmlEntityResolver, QXmlErrorHandler and XML..SH MEMBER FUNCTION DOCUMENTATION.SH "bool QXmlLexicalHandler::comment ( const QString & ch )\fC [virtual]\fR"The reader calls this function to report an XML comment anywhere in the document. It reports the text of the comment in \fIch\fR..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..SH "bool QXmlLexicalHandler::endCDATA ()\fC [virtual]\fR"The reader calls this function to report the end of a CDATA section..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..PPSee also startCDATA()..SH "bool QXmlLexicalHandler::endDTD ()\fC [virtual]\fR"The reader calls this function to report the end of a DTD declaration, if any..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..PPSee also startDTD()..SH "bool QXmlLexicalHandler::endEntity ( const QString & name )\fC [virtual]\fR"The reader calls this function to report the end of an entity with the name \fIname\fR..PPFor every call of startEntity(), there is a corresponding call of endEntity(). The calls of startEntity() and endEntity() are properly nested..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..PPSee also startEntity() and QXmlSimpleReader::setFeature()..SH "QString QXmlLexicalHandler::errorString ()\fC [virtual]\fR"The reader calls this function to get an error string if any of the handler functions returns FALSE..SH "bool QXmlLexicalHandler::startCDATA ()\fC [virtual]\fR"The reader calls this function to report the start of a CDATA section. The content of the CDATA section is reported through the QXmlContentHandler::characters() function. This function is intended only to report the boundary..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..PPSee also endCDATA()..SH "bool QXmlLexicalHandler::startDTD ( const QString & name, const QString & publicId, const QString & systemId )\fC [virtual]\fR"The reader calls this function to report the start of a DTD declaration, if any. It reports the name of the document type in \fIname\fR, the public identifier in \fIpublicId\fR and the system identifier in \fIsystemId\fR..PPIf the public identifier and the system identifier is missing, the reader sets the \fIpublicId\fR and \fIsystemId\fR to QString::null..PPAll declarations reported through QXmlDTDHandler or QXmlDeclHandler appear between the startDTD() and endDTD() calls..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..PPSee also endDTD()..SH "bool QXmlLexicalHandler::startEntity ( const QString & name )\fC [virtual]\fR"The reader calls this function to report the start of an entity with the name \fIname\fR..PPNote that if the entity is unknown, the reader reports it through QXmlContentHandler::skippedEntity() and not throught this function..PPIf this function returns FALSE the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message..PPSee also endEntity() and QXmlSimpleReader::setFeature()..SH "SEE ALSO".BR http://doc.trolltech.com/qxmllexicalhandler.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qxmllexicalhandler.3qt) and the Qtversion (3.0.0).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -