Building a Parser Interface with MSXML

This section shows how to build a validating parser using MSXML and the IE5 browser. The parser is in fact an HTML page that incorporates the ActiveX object "Microsoft.XMLDOM" as its engine and is then opened as an IE5+ browser. The browser can then be used to parse local files and files on the Internet, and it can parse either as a non-validating browser or as a validating browser. This is the browser that will be used in the next section, when we look at validating documents and debugging DTDs.

It is presented here mainly because it illustrates most of the techniques of importing the MSXML parser into an application.

Listing 14.2 shows the complete code for the MSXML parser. This code is available on ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.