Parsing/Reading the mail from the server which is in html format
shekarasankaran
Greenhorn
Joined: Nov 12, 2001
Posts: 18
posted
0
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
posted
0
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
posted
0
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
subject: Parsing/Reading the mail from the server which is in html format