🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Modify an HTML page content

#7648
From: M.H.
Date: Thu, 11 Jan 2001 15:39
13 lines
1216 bytes
Hi,

I already use javax.swing.text.html.HTMLDocument to handle HTML tag of
one document.
Now, I would like to parse an HTML page and retreive all his content,
make some modification and finally write this new content to an empty
HTML file.

How could I select some tag and there attribute in order to modify them
? (classes and methods to use or one example to do that).

TIA.
M.H.
Technical Details
Message-ID: <3A5DD3B4.A0961F@reflexe.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!195.238.2.15!skynet.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d34be04df48a7cc1,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-11 07:42:23 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!europa.netcrusader.net!195.238.2.15!skynet.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail
From: "M.H." <lacombe@reflexe.fr>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Modify an HTML page content
Date: Thu, 11 Jan 2001 16:39:32 +0100
Organization: Another Netscape Collabra Server User
Lines: 14
Message-ID: <3A5DD3B4.A0961F@reflexe.fr>
NNTP-Posting-Host: nat-235.rever.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.51 [en] (WinNT; I)
X-Accept-Language: en