TrainBeaser for iPhone
The moose likes Other JSE/JEE APIs and the fly likes Parsing/Reading the mail from the server which is in html format Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Parsing/Reading the mail from the server which is in html format" Watch "Parsing/Reading the mail from the server which is in html format" New topic
Author

Parsing/Reading the mail from the server which is in html format

shekarasankaran
Greenhorn

Joined: Nov 12, 2001
Posts: 18
I have an application where i want the users to send me mail which is in predefined html format. i want to parse the mail at the receivers end . i am using java mail.Like i have a fixed format
ie name, age sex are the parameters for which i want to find the value
Pls help me out here.
Tom Ben
Ranch Hand

Joined: Aug 17, 2001
Posts: 109
I would append <?xml version="1.0"?> to the top of the html feed and then run it thru a XML parser. Then you can just look for the Tags you want. I do not know if they have a HTML parser I could be wrong.
Originally posted by sshekar:
I have an application where i want the users to send me mail which is in predefined html format. i want to parse the mail at the receivers end . i am using java mail.Like i have a fixed format
ie name, age sex are the parameters for which i want to find the value
Pls help me out here.

[ January 11, 2002: Message edited by: Tom Ben ]

Sun Certified Programmer on the Java 2 Platform
shekarasankaran
Greenhorn

Joined: Nov 12, 2001
Posts: 18
Thanks for that input.
U mean to say that, make it an xml file and then
use a suitable parser to parse it and read the
values. Can u throw some more light on to it.
like what will be the ideal parser and if possible send me an example of the same
 
IntelliJ Java IDE
 
subject: Parsing/Reading the mail from the server which is in html format
 
Threads others viewed
How to convert a HTML document to PDF format?
Error while sending Html Mail
send mail
HTML Format Mail
sending mail using server sockets
developer file tools