int setFlag(int flagset, int flag, int value);

flagset - the set of flags where flag is contained

1 - CSECFGVALFLAGS1

2 - CSECFGVALOUTPUTFLAGS

3 - CSECFGVALENTITYFLAGS

4 - CSECFGGENFLAGS

5 - CSECFGNETFLAGS

6 - CSECFGTOOLFLAGS

7 - CSECFGLOGFLAGS

8 - CSECFGTAGNAMEPROGRAMFLAGS; flag is the tag name program flag number (includes style flags)

9 - CSECFGVALFLAGS2

10 - CSECFGTIDYFLAGS

11 - CSECFGNSGMLSFLAGS

12 - CSECFGPHPFLAGS (New v8.9910)

13 - CSECFGJSFLAGS (New v8.9910)

14 - CSECFGSEARCHENGINEFLAGS (New v8.9910)

15 - CSECFGVALFLAGS3

16 - CSECFGJSLINTFLAGS (New v10.9931)

17 - CSECFGJSHINTFLAGS (New v15.9914)

50 - "\Validator\ValidatorFlagsxx" (CSECFGVALFLAGS1), flag ignored, set all flags at once

51 - "\Validator\OutputFlagsxx" (CSECFGVALOUTPUTFLAGS), flag ignored, set all flags at once

52 - "\Validator\EntityFlagsxx" (CSECFGVALENTITYFLAGS), flag ignored, set all flags at once

53 - "\General\Flagsxx" (CSECFGGENFLAGS), flag ignored, set all flags at once

54 - "\Network\Flagsxx" (CSECFGNETFLAGS), flag ignored, set all flags at once

55 - "\Tools\Flagsxx" (CSECFGTOOLFLAGS), flag ignored, set all flags at once

56 - "\Logging\Flagsxx" (CSECFGLOGFLAGS), flag ignored, set all flags at once

60 - "\Validator\ProgramFlagsxx" (tag name program flags 1-30), flag ignored, set all flags at once

61 - "\Validator\ProgramFlags2xx" (tag name program flags 31-60), flag ignored, set all flags at once

62 - "\Validator\ProgramFlags3xx" (tag name program flags 61-90), flag ignored, set all flags at once

63 - "\Validator\ProgramFlags4xx" (tag name program flags 91-120), flag ignored, set all flags at once

64 - "\Validator\ProgramFlags5xx" (tag name program flags 121-150), flag ignored, set all flags at once

65 - "\Validator\ProgramFlags6xx" (tag name program flags 151-180), flag ignored, set all flags at once

70 - "\Validator\CSSCheckerFlags" (style flags 600-629), flag ignored, set all flags at once

71 - "\Validator\CSSCheckerFlags2" (style flags 630-659), flag ignored, set all flags at once

200 - CSERESULTSTATUSFLAGS

300 - Validator job flags (New v6.9941)

flag values

1 - disable CSE validation results (use in start validation program)

2 - ignore "cf" elements (those that begin with "cf") (New v8.01)

3 - PHP script detected in document (New v8.9910)

4 - JavaScript detected in document (New v8.9910)

5 - run nsgmls (New v10.9912)

6 - add all attributes to the node structure

7 - document is a web application (New v16.0200)

flag - the flag to set or read; a bitmask unless otherwise noted

value - the new value of the flag; 1 to set the flag, 0 to clear the flag, and anything else, such as -1, to read the flag (the function returns the flag's value)

The function returns the original value of the flag (0 or 1) before it was changed (if it was changed).

flagsets 50-69 allow one to easily override most or all of the checkbox options in the Validator Engine Options for a given configuration file. To use these flagsets, set up the Validator Engine Options the way that you want and then press the Save Now button to save the options to the registry. You can then use the Registry Editor to view the values of certain registry entries. Use these values and the setFlag() function in the start validation tag name program of the configuration file to override the user's currently selected Validator Engine Options. For example, in CSE HTML Validator v8.0, set up the core validator checkbox options in the Validator Engine Options the way that you want, press the Save Now button, then go to the Registry Editor to get the value for "ValidatorFlags40" in "HKEY_CURRENT_USER\Software\AI Internet Solutions\CSE HTML Validator v4\Validator DLL\Validator". Let's say this value is 1057088279. Now you can override most or all of the core validator checkbox options in the Validator Engine Options by adding this line to the start validation tag name program of the configuration file that you want modify: setFlag(50,0,1057088279);.