> Expat4D Home > Documentation > Command Reference

xml_GetParserOption ( parserID; option ) --> value


  • --> parserID : longint
  • --> option : longint
  • <-- value : longint

Returns the current value of the parser option specified in the 2nd parameter. If the parser option passed is invalid, zero is returned.

At the moment, there are only two options you can get using this command. These are the options, constants, values of the constants, and possible settings of the parser options.

Option Constant Possible Values
Output Buffer Increment Size
The output buffer is increment in size in large blocks, rather than incrementing the size each time text is appended to it. Using this setting you can set a different increment size. The default is 32000 bytes.
XML_OPT_OutputBufferIncrementSize = 1 1 byte to 1 mega byte (1024*1024 bytes)
Output Buffer Initial Size
If you know roughly what size the output buffer will be at the end of a parsing job, you can set the initial size of the buffer to be larger to save having it resized at all.
XML_OPT_OutputBufferInitialSize = 2 1 byte to 1 mega byte (1024*1024 bytes)
  Expat4D Logo

Developer Documentation

Creating Parsers, Destroying Parsers, Parsing Text

Configuring Handler Methods

Position and Error Reporting Functions

Miscellaneous Functions

Output Buffer Functions

Error Codes


> Expat4D Home > Documentation > Command Reference

Last Modified: 27th April 2001 at 9:00 PM