Share via


XmlReadState Enumeration (Compact 7)

3/12/2014

This structure lists the valid values for the state of the IXmlReader.

Syntax

enum XmlReadState {
    XmlReadState_Initial = 0,
    XmlReadState_Interactive = 1,
    XmlReadState_Error = 2,
    XmlReadState_EndOfFile = 3,
    XmlReadState_Closed = 4} ;

Values

  • XmlReadState_Initial
    The state that the reader is in after the input to the reader has been initialized: for example, SetInput has been called successfully.
  • XmlReadState_Interactive
    The state the reader is in when it is parsing. Typically, the reader enters this state after the first call to Read. The reader remains in this state until it reaches the end of the file, an unrecoverable error occurs, or the underlying stream is closed.
  • XmlReadState_Error
    The state that the reader is in when unrecoverable errors are encountered.
  • XmlReadState_EndOfFile
    The state the reader is in when the end of file is reached.
  • XmlReadState_Closed
    The state the reader is in when the underlying stream is closed. This is also the initial state the reader is in when the reader is created.

See Also

Reference

Enumerated Types
IXmlReader
SetInput
Read
XmlReaderProperty_ReadState