Text Parser to XML
Guys, I'm able to parse the file right now. I need some assistance that how can i make a Hashmap/Hashtable from the output. For example BEGIN:VCARD VERSION:3.0 N:Rangarajkarthik FN:karthik Rangaraj EMAIL:kart2006@gmail.com EMAIL:karthikrangaraj@yahoo.com END:VCARD
From the above sample output, how can i make an id for the name and 开发者_如何学Gostore those email address corresponding to the name. Ideas and Help will be highly appreciated. Thank u guys.
For java, for instance, you may use String
methods to parse .part file (line.split(":")
) and dom4j framework for creating xml file.
精彩评论