XML and XML schema support

I want to convert web page in to a XML document and validate it with a
XML Schema.Can I do this with Ruby on Rails framework. Please let me
know.