> Expat4D Home > Documentation > Command Reference

xml_SetParserOption ( parserID; option; value )


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

The command allows you to set different parser options which can be set using a longint value. This allows us to add other options without having to add another command, just another constant for the option.

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

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_OB_IncrementSize = 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_OB_InitialSize = 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