I have been trying to build browser plugins for the WM6 IE /PIE. The term “browser plugin” is not similarly applicable for IE as for Mozilla Firefox.There is more to IE: ActiveX , Asynchronous Pluggable Protocol Handlers,Browser Helper Objects are the prominent terms.
My requirement: Parse the HTML DOM tree of a downloaded webpage in IE browser.
After a week long searching in the WM6 documentation ,finally found out that there is some called Browser Helper Objects which will suffice my requirements not the other methods as above.
BHOs was not much of a problem as there are good examples in the WM6 SDK samples itself.Next came,how to parse the DOM tree.In the documentation iisnt mentioned.The only thing shows up is the XML DOM tree parsing.Mapping the IDispatch* obtained vis IWebBrowser2 interface pointer into the XMLDOMDocument interface failes during the latter’s load() method.
Then an extensive session of “googling” followed but with almost nothing.Some place I did find the IPIEHTMLDocument2 mentioned but since it didnt show in the WM6 documentation,i left that.
Later on when searching for “HTML” in webvw.h in the WM6 SDK,the interface declaration showed up.There we go…now I could successfully parse the HTML DOM tree.