Fermé

HTML Parser improvement

We have already an HTML parser. Modify it so that it can get all text items into an HTML string separated by a semni-column ;

The code should look a little bit like below, using the modified HTMLParser classes. The important thing is to test it on several HTML pages where this is an mshtml object.

Besides, the resulting text file should should have a line jump where it meets a in the original HTML code. It should also be able to get rid of garbage text element such as rn in the original HTML.

string strHTML = [url removed, login to view]();

string strStripedText = "";

HtmlParser theParser = new HtmlParser();

[url removed, login to view] allNodes = [url removed, login to view](strHTML);

foreach (HtmlNode node in allNodes)

{

if ([url removed, login to view]().ToString()=="KUMOFrwk.HTMLParser.HtmlText")

strStripedText += (([url removed, login to view])node).Text + ";";

}

try

{

[url removed, login to view] fs = new [url removed, login to view] (strFileName,append,[url removed, login to view]);

[url removed, login to view] (strStripedText);

[url removed, login to view] ();

[url removed, login to view] ();

}

catch (Exception ee)

{

[url removed, login to view]("Ignored Exception.", ee);

return false;

}

Compétences : .NET

Voir plus : little test, write html pages, rn, no html, io, html we, html on, html c, encoding, ee, html code pages, catch can, append line file, string html, html file net, column text, column html, html info, html object, info line, quot html, html column, html line, html quot, htmltext

Concernant l'employeur :
( 0 commentaires ) PARIS, France

N° du projet : #27042

7 freelance ont fait une offre moyenne de 72 $ pour ce travail

Gtech

we will provide you exactly as you want within a time period with the quality work, we are the indian based software solution provider company, we have an experienced and high skilled programer who will satisfy all of Plus

100 $ USD en 7 jours
(0 Commentaires)
0.0
dileepk

We can deliver the project within specified time.

60 $ USD en 5 jours
(0 Commentaires)
0.0
hitechend

Hello!! We have gone through the project information and we are very much interested in working and having a long term relationship with you. We can meet your requirements. We have good and talented team of Designers. Plus

99 $ USD en 7 jours
(0 Commentaires)
0.0
amishra

Hi, I have expertise of 2 years in .NET and I have done a XML-Parser project.I have gone through your provided code, it is using a "Tree structure logic" to get the Text message from the HTML string. I know where it n Plus

80 $ USD en 7 jours
(0 Commentaires)
0.0
neon

can be done easily. check PMB

80 $ USD en 0 jours
(0 Commentaires)
0.0
nsrajesh

Sir I am ready todo this project. I did same type of project earlier in RAC. So, i can do this within 5 days from your approval. Thank you. Regards Rajesh Prabhu S

30 $ USD en 5 jours
(0 Commentaires)
0.0
NimboProgramers

Check PMB, it too easy

55 $ USD en 2 jours
(0 Commentaires)
0.0