# Reading xml files & i18n

**URL:** <https://www.ruby-forum.com/t/reading-xml-files-i18n/137688>\
**Category:** Radiant CMS\
**Created:** [May 15, 2008, 10:37am UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688 "2008-05-15T10:37:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 15, 2008, 10:37am UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/1 "2008-05-15T10:37:48Z")

</div>

Could anyone read xml files from radiant pages?

i installed backdoor extension and hpricot but still couldnt achive to  
what  
i want

i want to read xml files that is located on another server

is there any extension for that?

secondly, is there any attempt or chance to translate radiant to another  
language? (in my case, to turkish)

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 15, 2008, 11:07am UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/2 "2008-05-15T11:07:59Z")

</div>

U can have a hack to the remote server using a net/http request and the  
achieve the rest using REXML…This should work acutally …

cheers,  
kranthi

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 15, 2008, 11:56am UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/3 "2008-05-15T11:56:07Z")

</div>

with the help of backdoor?

i want to deploy this script to a page:  
[http://www.ikinoktayazilim.com/wordpress/2007/11/13/vakitrb/](http://www.ikinoktayazilim.com/wordpress/2007/11/13/vakitrb/)

but constantly gives errors

firstly i cant use

include REXML

no probs i added it to right place

vakitler =  
REXML::Document.new(File.new(‘vakit.xml’)).root.to\_a[bugun].text.split(/\t/)

but i wouldnt work this way tho…

but that’d work: vakitler = REXML::Document.new(File.new(‘vakit.xml’))

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 15, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/4 "2008-05-15T13:47:58Z")

</div>

i miss something? how to run a ruby script from a page w/o backdoor  
extension?

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 15, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/5 "2008-05-15T13:51:33Z")

</div>

U can create a tag like the standard tags…  
I mean create a radiant customized tag to handle the ruby script…

cheers,  
kranthi.

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 17, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/6 "2008-05-17T22:51:36Z")

</div>

where to put custom tags?

creating and extension or put them on lib/ dir?

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 18, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/7 "2008-05-18T20:26:46Z")

</div>

Yeah,  
All you need to do is to create an extension.Then create a file and  
write a  
tag which you can use it globally…

cheers,  
kranthi

---

<div class="post-metadata">

**Author:** ![nurullah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e480ec/32.png) [@nurullah](https://www.ruby-forum.com/u/nurullah)\
**Post date:** [May 15, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/reading-xml-files-i18n/137688/8 "2008-05-15T12:11:33Z")

</div>

No I dont think we need to use backdoor extension…  
Its not mandatory…  
U can use net/http and send/receive the request in xml format.

cheers,  
kranthi.
