Re: XML and DOM through MFC?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Harish wrote:
I am new to DOM and XML.
1. Certain device commands are to be stored in a reference file. The commands exchanged between the device and the PC should be trapped. The trapping component must parse through the reference file. It is recommended that the reference file be XML. Can I access Microsoft DOM through MFC?

2. The commands that are exchanged are to be stored as HTML and RTF. How can I do it through MFC?

Harish:

1. The Microsoft XML parser is called MSXML. AFAIK there are no MFC sepecific commands for working with it, but MSXML is a COM interface so you can access it using CoCreateInstance() etc. If you use .NET there are nicer ways to interact with XML (I am told).

2. If I were you I would use XHTML rather than HTML. One way to write it is to use MSXML. RTF can be written using CRichEditCtrl.

David Wilkinson


.