🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8441

Re: How to read attributes of an HTML page

#8441
From: My News Group
Date: Sat, 19 Aug 2000 00:00
52 lines
1743 bytes
Hi,
  That is fine..but my problem is I want to read the attributes of HTML page
on the servlet.

How can i achieve this..?

Thanks
Anand


Olaf Raether <o.raether@windsoft.de> wrote in message
news:399d0907.16636271@forums.inprise.com...
> Hey Anand,
>
> In my opinion there a two ways.
>
> 1)
> if you only want read just some attributes from a page, i would
> prefer regular expression to get the information out of the page.
> An regex implementation for java can found at
> http://jakarta.apache.org
>
> 2)
> if you have to analyse the hole page, then you need an html parser.
> You can find one at http://www.w3c.org. it�s called html tidy.
> There�s a java version available too.
>
> Olaf Raether
> o.raether@windsoft.de
>
>
> On Fri, 18 Aug 2000 14:52:23 +0530, "My News Group"
> <amudliar@hotmail.com> wrote:
>
> >Hi,
> >   I have the URL of the HTML page, now i want to read the attributes
such
> >as background color etc. How vcan i achieve this??
> >
> >Sample code is appreciated.
> >
> >Hint : HTMLDocument class models the HTML page.
> >
> >Thanks
> >Anand
> >
> >
> >
> >
> >
> >
>
Technical Details
Message-ID: <8nl3p6$pqc8@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8niuhp$79f4@bornews.borland.com> <399d0907.16636271@forums.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,26c3f125d583390a
X-Google-Attributes: gid111d45,public
From: "My News Group" <amudliar@hotmail.com>
Subject: Re: How to read attributes of an HTML page
Date: 2000/08/19
Message-ID: <8nl3p6$pqc8@bornews.borland.com>
X-Deja-AN: 659986080
References: <8niuhp$79f4@bornews.borland.com> <399d0907.16636271@forums.inprise.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing