On Sat, Apr 21, 2007 at 04:23:03PM -0700, Dr. Ernie Prabhakar wrote:
> > If there's interest, I can
> > fix up the generating part (the various #to_xml's) as well.
> 
> Wow, great work. I'd certainly be interested in seeing that...

Okay.  I see that my first patch was committed this morning (thanks
DHH) so this is the next logical step.  Note that by itself, this
change enables nothing without a proper schema definition.  Basically
it would be trading a little bit of aesthetics (e.g., datetime for
dateTime) for a little bit of purity (a "standard" type list).

On the subject of XML schemas, the biggest missing piece of the puzzle
is a way to get the appropriate attributes on the root element for
records.  I am thinking an interface would look something like

@people.to_xml(
  :root_attributes => {
    'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance";,
    'xsi:noNamespaceSchemaLocation' => formatted_people_url(:xsd)
  }
)

The implementation should be simple enough, but before I do it I want
to get some feedback on the interface (or at least, not get negative
feedback).

Cheers,
Tim

--~--~---------~--~----~------------~-------~--~----~
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