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 H. 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 D.

Amar D. wrote:

Vuong H. 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 D.
http://railstech.com

Thanks Amar D.,
I will try it.