?
Solved

XML DOM access

Posted on 2003-03-11
2
Medium Priority
?
242 Views
Last Modified: 2008-02-01
I wrote an ActiveX controller to manipulate the html pages in the browser. I can access the html DOM, but now i wannt to acess the XMLDOM to be able to use Xpath expressions to manipulate the page. So the question: can I access the XMLDOM of the page in the browser like i did it wiht the htmlDOM:

IHTMLDocument2* GetpDoc()
{
     IOleClientSite *pClientSite = NULL;
     pClientSite = GetClientSite();
     IOleContainer* pDocDisp = NULL;
     pClientSite->GetContainer(&pDocDisp);
     IHTMLDocument2* pDoc = NULL;
     pDocDisp->QueryInterface(IID_IHTMLDocument2, (void**)&pDoc);
     
        return pDoc;
}
This way i have the pointer to the html document (actually not the DOM, but doesnt matter).

0
Comment
Question by:czekmany
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Expert Comment

by:BorlandMan
ID: 8116976

I don't think you can get at this information through an HTMLDocument. You can parse xmldocuments using the MsXML parser.

hth,
J
0
 

Accepted Solution

by:
Polymorphic earned 360 total points
ID: 8133386
if the html as xml data island you can get the XMLDom for that
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question