Xerces C++ SAX 解析事件总结 (一)

2014-11-24 10:45:28 · 作者: · 浏览: 0

virtual void characters

(

const XMLCh* const chars

, const XMLSize_t length

);


Receive notification of character data inside an element.

在一个元素中接收字符数据的通知

virtual void endDocument();


Receive notification of the end of the document.

接收文档结束的通知

virtual void endElement

(

const XMLCh* const uri,

const XMLCh* const localname,

const XMLCh* const qname

);


Receive notification of the end of an element.

接收一个元素的结束的通知

virtual void ignorableWhitespace

(

const XMLCh* const chars

, const XMLSize_t length

);


Receive notification of ignorable whitespace in element content.

接收元素内容中可忽略的空白的通知

virtual void processingInstruction

(

const XMLCh* const target

, const XMLCh* const data

);


Receive notification of a processing instruction.

接收处理指令的通知

virtual void resetDocument();


Reset the Document object on its reuse

重设文件对象

virtual void setDocumentLocator(const Locator* const locator);


Receive a Locator object for document events.

接收文档事件的Locator对象。

virtual void startDocument();


Receive notification of the beginning of the document.

收到通知的开头的文件。

virtual void startPrefixMapping

(

const XMLCh* const prefix,

const XMLCh* const uri

) ;


Receive notification of the start of an element.

收到命名空间前缀映射开始的通知。

virtual void endPrefixMapping

(

const XMLCh* const prefix

) ;


Receive notification of the end of an namespace prefix mapping.

收到命名空间前缀映射结束的通知。



virtual void skippedEntity

(

const XMLCh* const name

) ;


Receive notification of a skipped entity。

接收跳过的实体的通知

virtual InputSource* resolveEntity

(

const XMLCh* const publicId

, const XMLCh* const systemId

);


Resolve an external entity.

解析外部实体。

virtual void error(const SAXParseException& exc);


Receive notification of a recoverable parser error.

接收可恢复的解析器错误的通知。

virtual void fatalError(const SAXParseException& exc);


Report a fatal XML parsing error.

报告严重的XML解析错误。

virtual void warning(const SAXParseException& exc);


Receive notification of a parser warning.

收到通知的解析器警告。

virtual void resetErrors();


Reset the Error handler object on its reuse

重置的错误处理程序对象重用

virtual void notationDecl

(

const XMLCh* const name

, const XMLCh* const publicId

, const XMLCh* const systemId

);


Receive notification of a notation declaration.

收到通知的一个符号声明。

virtual void resetDocType();


Reset the DTD object on its reuse

重设DTD对象的重用

virtual void unparsedEntityDecl

(

const XMLCh* const name

, const XMLCh* const publicId

, const XMLCh* const systemId

, const XMLCh* const notationName

);


Receive notification of an unparsed entity declaration.

收到通知的一个未解析的实体声明。

virtual void comment

(

const XMLCh* const chars

, const XMLSize_t length

);


Receive notification of comments.

收到注释事件。

virtual void endCDATA ();


Receive notification of the end of a CDATA section.

收到通知的一个CDATA部分。

virtual void endDTD ();


Receive notification of the end