Added a decode function for searched notes in xml format