Generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generat

Hi all,
In ruby language, while generating xml tags with a period(.) in
the tag name as given below, the xml builder gives me error, without
the period it works fine Could
anyone suggest me the solution. My rxml file is as follows:

xml.instruct! :xml, :version=>“1.0”,
:encoding=>“UTF-8”
xml.methodResponse do
xml.param do
xml.Date.iso8601(@date.strftime("%Y-%m-%dT%H:%M:%S"))
end
end

TIA

On 2 Nov 2007, at 05:12, Usha Murali wrote:

Hi all,
In ruby language, while generating xml tags with a period(.) in
the tag name as given below, the xml builder gives me error, without
the period it works fine Could
anyone suggest me the solution. My rxml file is as follows:

IIRC Builder gives you the tag! method which allows you to pass the
name of the tag as a string.

Fred

Hi Fred,
Thanks for your quick reply, as per ur suggestion i have installed
builder as follows:
gem install builder
Attempting local installation of ‘builder’
Local gem file not found: builder*.gem
Attempting remote installation of ‘builder’
Successfully installed builder-2.1.2
Installing RDoc documentation for builder-2.1.2…

But I find difficulty in loading the builder library:

[root@rubyserver lib]# irb --simple-prompt

require ‘builder’
LoadError: no such file to load – builder
from (irb):1:in `require’
from (irb):1

Also Please suggest me if I could achieve my requirement with this
library, that I wanted the xml tage to include a period(.) in the tag
as : <Date.iso8601>date</Date.iso8601>

On 2 Nov 2007, at 09:56, Usha Murali wrote:

Hi Fred,
Thanks for your quick reply, as per ur suggestion i have installed
builder as follows:

You’ve already got builder - it’s what you are already using.

Fred

Fred ,

Kindly suggest me if I could achieve my requirement with this
library, that I wanted the xml tage to include a period(.) in the tag
as : <Date.iso8601>date</Date.iso8601>. It works fine without the
period(.) in the tag - date.

Thanks,
Usha

On 2 Nov 2007, at 10:50, Usha Murali wrote:

Fred ,

Kindly suggest me if I could achieve my requirement with this
library, that I wanted the xml tage to include a period(.) in the tag
as : <Date.iso8601>date</Date.iso8601>. It works fine without the
period(.) in the tag - date.

Like I said before, the tag! method should allow this as you pass the
name of the tag to create as a parameter.

Fred