first of all, which 'fields' from the data content you provided are you interested in?
they seem to be listed there twice, once as a plain text and second time as a html table. but they do not fit in content.
eg.
second, it might be quite complex to parse this.
you can not apply XPath directly on this since it is not valid XML document. you might go with XPath if you were interested in data from html table. to get html table out of whole content would be quite easy with regular expresion.
still, building an XPath over the table will not be easy/straightforward, since it needs to traverse unclear number of levels to get to common parent of both label (eg. Last Name) and its value (eg. Subuar) and then to go down the tree from parent again unclear number of levels to the value. maybe somehow step by step with several actions, but I'm not sure, have never worked on something like this yet.
with regular expressions I would see it moreless the same. you would likely need one regular expression to address that common parent, then the other to get value.
what I'd affraid of the most is unclear content/structure in regard of formatting. that might cause that you get every mail with different structure (those mentioned unclear number of levels).
next thing which is not clear and which might complicate things further is whether single mail can contain several items (data of several people), and whether this would be possible identify somehow from html table at all.
would it be possible that you accepted just plain text mails?
or that mail body is already valid XML content/document?
Hi,
I thought the same,and have used regular expression to retrieve the data from Email,till now it working fine,lets hope for the best.Thanks for your reply. :)