How to get data from DOM Source other website?

Hi, everybody.

I am newbie RoR.

I want to get all data from DOM Source of website.

Can you guide me the way to use REXML? I have ready installed lib-xml library but I only use XML::Parser. I don't understant it.

Thanks a lot and looking forward.

Vuong Hung wrote:

Hi, everybody.

I am newbie RoR.

I want to get all data from DOM Source of website.

Can you guide me the way to use REXML? I have ready installed lib-xml library but I only use XML::Parser. I don't understant it.

Thanks a lot and looking forward.

Use Hpricot to parse Html/xml page which is much more easy. You can select particular data by finding unique css There are various options are available. Amar Daxini

Amar Daxini wrote:

Vuong Hung wrote:

Hi, everybody.

I am newbie RoR.

I want to get all data from DOM Source of website.

Can you guide me the way to use REXML? I have ready installed lib-xml library but I only use XML::Parser. I don't understant it.

Thanks a lot and looking forward.

Use Hpricot to parse Html/xml page which is much more easy. You can select particular data by finding unique css There are various options are available. Amar Daxini http://railstech.com

Thanks Amar Daxini, I will try it.