The code generated to validate XML messages is similar to that for decoding in that either the custom pull-parser or off-the-shelf XML parser software is used. See the previous section on generated decode methods for a description of the parsers. Special SAX handlers that are used by these parsers are generated to do the validation processing.