Advertisement

03.30.2008 at 06:56AM PDT, ID: 23280697
[x]
Attachment Details

HTML Document parsing with MSHTML in c#

Asked by SHAHEEN_AKHTAR in Microsoft Visual C#.Net

Tags: c#

I am parsing HTML documents using MSHTML. I have a console application with a Form class hosting AxWebBrowser control to render the document. AxWebBrowser control is being used to get rendered attributes as we get from DOM tool of IE. I am using FOREACH loop to iterate through the document elements to get text and attributes.

At times the loop takes a long time to complete the iterations. On observation I observed that these HTML documents have huge number of elements ( 1500 to 5000). This a common observation in Hindi web pages.

Kindly help me

Thanks a lot.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
foreach (IHTMLElement2 in doc.all)
{
        //get element adjacent text
        //If text exists find the currentstyle.fontfamily.
        //pass the text and font to textconverter and get the converted text.
        //Replace the adjacent text.
        //Go for next element.
}
 
Keywords: HTML Document parsing with MSHTML …
 
Loading Advertisement...
 
[+][-]03.31.2008 at 04:29AM PDT, ID: 21244463

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 06:20AM PDT, ID: 21245016

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 06:23AM PDT, ID: 21245048

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 06:54AM PDT, ID: 21245347

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.31.2008 at 09:29PM PDT, ID: 21251262

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 12:15AM PDT, ID: 21251816

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 04:22AM PDT, ID: 21252784

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 06:07AM PDT, ID: 21253467

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 09:33PM PDT, ID: 21260212

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 06:29AM PDT, ID: 21262775

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 09:57PM PDT, ID: 21269787

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 02:01AM PDT, ID: 21357024

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.18.2008 at 08:10AM PDT, ID: 21386465

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Tags: c#
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628