A system and method for parsing XML is provided. The method includes
associating an input stream with a pull model parser, accepting requests
to selectively parse out XML items from the input stream and retrieving
metadata information associated with the parsed out XML items. The method
further includes checking the pulled XML item to determine whether it
conforms to XML syntax and/or semantic standards and validating the
pulled XML item to determine whether it conforms to a selected DTD.