Results 1 to 4 of 4
Thread: convert html to plain text
- 07-07-2007, 10:18 AM #1
Member
- Join Date
- Jun 2007
- Posts
- 13
- Rep Power
- 0
- 07-07-2007, 10:57 AM #2
You can use regular expressions (java.util.regex package) if the tags are easy to identify in your documents.
If html used in a complex way in your documents (e.g. if they might have invalid html like not having some closing tags), then you should use a library to parse the html document. I recommend you to use an html parser. They are easy to use.
And if you dont want to use an additional library in your project, you can try using Swing HTML Parser.
- 07-07-2007, 02:20 PM #3
Member
- Join Date
- Jun 2007
- Posts
- 13
- Rep Power
- 0
I want to convert html file to text by giving it's URL as input.Plz give me the complete source code for it in JAVA if anybody can.Reply soon.Thanq
- 07-07-2007, 02:39 PM #4
Check this tutorial for downloading web page from an URL.I want to convert html file to text by giving it's URL as input.
Similar Threads
-
Convert .java to .exe
By susan in forum New To JavaReplies: 6Last Post: 02-11-2009, 06:47 AM -
HSSF: Html to Text conversion
By xtech in forum Advanced JavaReplies: 1Last Post: 04-17-2008, 08:45 AM -
convert html to text using java
By praveen@asia-mail.com in forum New To JavaReplies: 1Last Post: 11-14-2007, 02:08 PM -
convert a lot of images into a single one
By leonard in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:47 PM -
map javax.swing.text.Element to javax.swing.text.View
By elizabeth in forum New To JavaReplies: 1Last Post: 07-30-2007, 07:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks