\[quote\] String ip_str = "Root element : Transactions, Current Element : DocumentInfo, TransferType: Transactions, Copyright: 2010, Hectronic GmbH, CreatedBy: HecPoll, Date_Time: 2011-7-13 6:0:16, Current Element : DocumentInfo, TransferType: Funds, Copyright: 2010, Debeos, CreatedBy: Deroid, Date_Time: 2011-7-13 6:0:16, Current Element ocumentData, Current Element : Sale, Employee: Name : M DHANDAPANI, RcpNo : 144,Amount : 2926.0Station : 1,Customer : 000003,Terminal : , Vehicle : 10E, Payment : PAN : 000000002117799425D,Amount : 2926.000,TenderCode : 0,PayNum : 1, ArticleSale: Quantity : 77.000,SglPriceAsSold : 38.000,SglPrice : 38.000,Amount : 2926.000,FCCAmount : 2926.000,Taxrate : 18,LogicalFPNumber : 1,TankNumber : 3,ArtNum : 3,SaleNum : 1, Date_Time: 2011-07-12 06:45:00, Current Element : Sale, Employee: Name : A KANNAN, RcpNo : 145,Amount : 1444.0Station : 1,Customer : 000003,Terminal : 1, Vehicle : 10G, Payment : PAN : 000000002117998250D,Amount : 1444.000,TenderCode : 0,PayNum : 1, ArticleSale: Quantity : 38.000,SglPriceAsSold : 38.000,SglPrice : 38.000,Amount : 1444.000,FCCAmount : 1444.000,Taxrate : 18,LogicalFPNumber : 1,TankNumber : 3,ArtNum : 3,SaleNum : 1, Date_Time: 2011-07-12 06:57:00, Current Element : Sale, Employee: Name : S Vinu, RcpNo : 146,Amount : 1000.0Station : 2,Customer : 000004,Terminal : 1, Vehicle : , Payment : PAN : 000000002117998250D,Amount : 1444.000,TenderCode : 0,PayNum : 1, ArticleSale: Quantity : 22.000,SglPriceAsSold : 66.000,SglPrice : 40.000,Amount : 1000.000,FCCAmount : 1000.000,Taxrate : 18,LogicalFPNumber : 1,TankNumber : 3,ArtNum : 3,SaleNum : 1, Date_Time: 2011-07-12 06:57:00";\[/quote\]Above String consists of Root Element,Current Element as Parent and Child tag respectively and remaining consists of inner tag names with their attributes.Have to form xml based on these values?Thanks,