Html parsing file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • david

    #1

    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
  • Robbie Harris

    #2
    Re: Html parsing file

    not 'out-of-the-box' in the framework itself - but chris lovett's done an
    sgml reader which you might find useful:



    r.
    "david" <david@top4.com > wrote in message
    news:035301c365 76$57f7cdb0$a00 1280a@phx.gbl.. .[color=blue]
    > 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[/color]


    Comment

    • David

      #3
      Re: Html parsing file

      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[color=blue]
      >-----Original Message-----
      >not 'out-of-the-box' in the framework itself - but chris[/color]
      lovett's done an[color=blue]
      >sgml reader which you might find useful:
      >
      >http://www.gotdotnet.com/Community/U...es/Details.asp[/color]
      x?SampleGuid=b9 0fddce-e60d-43f8-a5c4-c3bd760564bc[color=blue]
      >
      >r.
      >"david" <david@top4.com > wrote in message
      >news:035301c36 576$57f7cdb0$a0 01280a@phx.gbl. ..[color=green]
      >> Is there a stream reader that can pasrse files which are
      >> in HTML format (i.e can't be passed as normal text[/color][/color]
      files)?[color=blue][color=green]
      >>
      >> thanks
      >> David[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Nicholas Paldino [.NET/C# MVP]

        #4
        Re: Html parsing file

        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]
        - nicholas.paldin o@exisconsultin g.com

        "David" <david@top4.com > wrote in message
        news:079b01c365 81$1cb4bfa0$a40 1280a@phx.gbl.. .[color=blue]
        > 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[color=green]
        > >-----Original Message-----
        > >not 'out-of-the-box' in the framework itself - but chris[/color]
        > lovett's done an[color=green]
        > >sgml reader which you might find useful:
        > >
        > >http://www.gotdotnet.com/Community/U...es/Details.asp[/color]
        > x?SampleGuid=b9 0fddce-e60d-43f8-a5c4-c3bd760564bc[color=green]
        > >
        > >r.
        > >"david" <david@top4.com > wrote in message
        > >news:035301c36 576$57f7cdb0$a0 01280a@phx.gbl. ..[color=darkred]
        > >> Is there a stream reader that can pasrse files which are
        > >> in HTML format (i.e can't be passed as normal text[/color][/color]
        > files)?[color=green][color=darkred]
        > >>
        > >> thanks
        > >> David[/color]
        > >
        > >
        > >.
        > >[/color][/color]


        Comment

        Working...