473,473 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Html parsing file

Is there a stream reader that can pasrse files which are
in HTML format (i.e can't be passed as normal text files)?

thanks
David
Nov 15 '05 #1
3 12094
not 'out-of-the-box' in the framework itself - but chris lovett's done an
sgml reader which you might find useful:

http://www.gotdotnet.com/Community/U...4-c3bd760564bc

r.
"david" <da***@top4.com> wrote in message
news:03****************************@phx.gbl...
Is there a stream reader that can pasrse files which are
in HTML format (i.e can't be passed as normal text files)?

thanks
David

Nov 15 '05 #2
Hey Robbie, thanks for your reply,
the thing is I am trying to parse what were original msg
files (outlook extentions) Usally I can parse them as text
files unless the message content is a web page(turning
that into text with the streamreader results in giberish.)
Does the frame work have anything that can handle this
probelm?
again thanks for you help
david
-----Original Message-----
not 'out-of-the-box' in the framework itself - but chris lovett's done ansgml reader which you might find useful:

http://www.gotdotnet.com/Community/U...es/Details.asp x?SampleGuid=b90fddce-e60d-43f8-a5c4-c3bd760564bc
r.
"david" <da***@top4.com> wrote in message
news:03****************************@phx.gbl...
Is there a stream reader that can pasrse files which are
in HTML format (i.e can't be passed as normal text files)?
thanks
David

.

Nov 15 '05 #3
David,

In order to parse the file, you will have to use COM interop and use the
MSHTML library to get the results. While it does support loading from a
stream (through the IPersistStream COM interface), you will have to define
this yourself as well as map between a .NET stream and a COM stream somehow.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"David" <da***@top4.com> wrote in message
news:07****************************@phx.gbl...
Hey Robbie, thanks for your reply,
the thing is I am trying to parse what were original msg
files (outlook extentions) Usally I can parse them as text
files unless the message content is a web page(turning
that into text with the streamreader results in giberish.)
Does the frame work have anything that can handle this
probelm?
again thanks for you help
david
-----Original Message-----
not 'out-of-the-box' in the framework itself - but chris

lovett's done an
sgml reader which you might find useful:

http://www.gotdotnet.com/Community/U...es/Details.asp

x?SampleGuid=b90fddce-e60d-43f8-a5c4-c3bd760564bc

r.
"david" <da***@top4.com> wrote in message
news:03****************************@phx.gbl...
Is there a stream reader that can pasrse files which are
in HTML format (i.e can't be passed as normal text files)?
thanks
David

.

Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

81
by: sinister | last post by:
I wanted to spiff up my overly spartan homepage, and started using some CSS templates I found on a couple of weblogs. It looks fine in my browser (IE 6.0), but it doesn't print right. I tested...
6
by: Hans Kamp | last post by:
Is it possible to write a function like the following: string ReadURL(string URL) { .... } The purpose is that it reads the URL (determined by the parameter) and returns the string in which...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
59
by: Lennart Björk | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
4
by: Rick Walsh | last post by:
I have an HTML table in the following format: <table> <tr><td>Header 1</td><td>Header 2</td></tr> <tr><td>1</td><td>2</td></tr> <tr><td>3</td><td>4</td></tr> <tr><td>5</td><td>6</td></tr>...
0
by: june | last post by:
Hi, I have a big problem with parsing HTML into a XHTML using Cberneko to validate the html. First I tried to work with a HTML-File. This solutions works fine: String aHTMLFile =...
4
by: Neil.Smith | last post by:
I can't seem to find any references to this, but here goes: In there anyway to parse an html/aspx file within an asp.net application to gather a collection of controls in the file. For instance...
22
by: John | last post by:
Hello, I have a php include command in my website and the script shows up. However, I need for the script to show up on the right side of page (there is enough room there)... but for some...
11
by: Tim Arnold | last post by:
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. <br />) to plain html...
2
by: Felipe De Bene | last post by:
I'm having problems parsing an HTML file with the following syntax : <TABLE cellspacing=0 cellpadding=0 ALIGN=CENTER BORDER=1 width='100%'> <TH BGCOLOR='#c0c0c0' Width='3%'>User ID</TH> <TH...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.