🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to read attributes of an HTML page

#8435
From: Olaf Raether
Date: Fri, 18 Aug 2000 00:00
38 lines
1286 bytes
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: <399d0907.16636271@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8niuhp$79f4@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,26c3f125d583390a
X-Google-Attributes: gid111d45,public
From: o.raether@windsoft.de (Olaf Raether)
Subject: Re: How to read attributes of an HTML page
Date: 2000/08/18
Message-ID: <399d0907.16636271@forums.inprise.com>
X-Deja-AN: 659675316
References: <8niuhp$79f4@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing