Results 1 to 7 of 7

Thread: taking HTML as input for VB????

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    6

    taking HTML as input for VB????

    hi all,
    how can we take an HTML / XML page as an input in VB?
    so that we can further process that?

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: taking HTML as input for VB????

    This is not an Application Deployment question...

    Reading is the key to the Internet...

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: taking HTML as input for VB????

    Thread moved from Application Deployment forum, which is for questions about installing/distributing your software

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: taking HTML as input for VB????

    It depends on exactly what it is you want to do and where it's coming from. It's a good idea to post a few more details when asking questions. Post a clear and complete description of what you're doing and what you want and we don't have to guess or assume.

    In brief, an XmlReader or XmlDocument will let you read an XML file and an XmlWriter or XmlDocument will let you write one. There's no specific support for HTML code in the .NET Framework so if it's XHTML you could read it as XML or else just read it as plain text and parse it yourself.
    Last edited by jmcilhinney; May 3rd, 2008 at 12:27 PM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: taking HTML as input for VB????

    What do you want to do with the page? If it's going to be HTML and there's the possibility of malformed tags, consider loading it into a string and working to get the values out using regular expressions.

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    6

    Re: taking HTML as input for VB????

    thanx all !
    actually i want to develop an application in which i want to take input from Case Studio 2 (its a DB designing tool)
    it generates scripts etc, n output is shown in XML and HTML as well
    this out put is required for my application as an input
    i think i can better take XML rather than HTML......

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: taking HTML as input for VB????

    XML would be the safer option.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width