use tally to generate xml format, and use same format to insert data back in to tally for eg.
to create sale voucher, get the xml from tally
i.e
GatewayOfTAlly-->Display-->Account Books--> Sales Register-->chhose
month-->ctl+E to export the voucher,
Now you got the xml format, you are good to go.