A small program in java to convert an XML document to JSON document