Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
shekarasankaran
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
shekarasankaran
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!