Hi Upeksha,
This thread may be old, but for the sakeness of completeness:
We at JAIDE (a German company) released our
Java library for contact importing a while ago. It supports 25 webmailers, including LinkedIn and XING, and auto-updates itself.
We're using it at another project of ours, the
Salam Business Club, so there's a guarantee that the library is quickly updated and stays fully functional.
(My apologies if this comes across as blatant self-promotion, I felt that this response fit in here.)