I have no idea what you mean by "xml correct format", but have you
tried googling "ruby convert html to xml"?
Whatver you need, the results should get you started
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks