What would a RelaxNG schema look like for the example? Here's one I
found:

http://relaxng.org/tutorial-20011203.html#IDAHDYR

And that looks more complicated than it needs to be.

Ben

On Apr 20, 2:55 pm, "Michael Koziarski" <[EMAIL PROTECTED]> wrote:
> > respond_to do |format|
> >   format.xml { render :xml => User.to_xml }
> > end
>
> > This would mean writing a to_xml function on ActiveRecord::Base as a
> > class method.  The XML this produces could look like the normal AR
> > to_xml format, just without any content.  An example:
>
> >http://pastie.caboo.se/55136
>
> Why not generate an xml schema?  or RelaxNG?  Inventing a schema
> language seems like the wrong direction...
>
> > More generally, I think this makes the Rails REST standard more
> > complete, by affording an ActiveResource client the same level of
> > schema knowledge that an ActiveRecord server has.
>
> --
> Cheers
>
> Koz


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to