Usha Murali
2007-Nov-02 05:12 UTC
generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generating xml tags with a period(.) in the tag name the xml builder gives me error
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-Nov-02 08:30 UTC
Re: generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generating xml tags with a period(.) in the tag name the xml builder gives me error
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Usha Murali
2007-Nov-02 09:56 UTC
Re: generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generating xml tags with a period(.) in the tag name the xml builder gives me error
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 11/2/07, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-Nov-02 09:58 UTC
Re: generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generating xml tags with a period(.) in the tag name the xml builder gives me error
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> > 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 11/2/07, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> 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 >> >>> >> > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Usha Murali
2007-Nov-02 10:50 UTC
Re: generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generating xml tags with a period(.) in the tag name the xml builder gives me error
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>date</Date>. Thanks, Usha On 11/2/07, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > 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 > > > > > 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 11/2/07, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> > >> 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 > >> > >>> > >> > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2007-Nov-02 14:40 UTC
Re: generating xml tags with a period(.) in the tag name generating xml tags with a period(.) in generating xml tags with a period(.) in the tag name the xml builder gives me error
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>date</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> > Thanks, > Usha > > On 11/2/07, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> 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 >> >>> >>> 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 11/2/07, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> >>>> >>>> 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 >>>> >>>>> >>>> >>> >>>> >> >> >>> >> > > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > For more options, v--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---