Okay, so what part are you stuck on? You'll need to devise a suitable XML format that represents your data, check if the connection's available. If not write to the XML. When the connection is available then transfer the XML to the database and deal with any concurrency issues.
--
Joe (
Microsoft MVP - XML)