I want to export the entire datatable to an xml. But I want the xml object to be available on my managed bean, because i want to send it to my database as a blog. I tried primefaces. But they have a component which send s it to the hard disk. can anyone suggest me how to this.