Forum: Ruby on Rails XML Databinding frameworks

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Harm de Laat (Guest)
on 2006-03-10 18:06
(Received via mailing list)
Are there any XML databinding frameworks available for Ruby / Rails,
such as
Castor or JaXB for Java?

Also are there framework such as Apache Axis for WebServices for Rails
or
Ruby?

Regards,

Harm de Laat
Ben M. (Guest)
on 2006-03-10 19:25
(Received via mailing list)
This is all I've been able find for Ruby to XML mapping:

http://rubyforge.org/projects/xml-mapping/

Haven't tried it yet.

Rails has webservice stuff built in... is there something Axis does that
ActionWebService
doesn't?

b
Bob H. (Guest)
on 2006-03-11 18:03
(Received via mailing list)
Well the thing I wrote: <http://rubyforge.org/projects/xampl/> --
xampl's beginnings are as an XML binding but that is only one of the
things it does.

I'll be releasing it as a plug-in for Rails soon.

Cheers,
Bob

On Mar 10, 2006, at 11:00 AM, Harm de Laat wrote:

> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails

----
Bob H.                  -- blogs at <http://www.recursive.ca/
hutch/>
Recursive Design Inc.          -- <http://www.recursive.ca/>
Raconteur                      -- <http://www.raconteur.info/>
xampl for Ruby                 -- <http://rubyforge.org/projects/xampl/>
Bill W. (Guest)
on 2006-03-11 19:16
(Received via mailing list)
Hi Bob,

That's impressive!  Any idea when you'll be making the plug-in
available?
I'm using Instant Rails on Windows 2K.  Any thoughts re: use on that
platform ?  Thanks in advance.

Best regards,
Bill

----- Original Message -----
From: "Bob H." <removed_email_address@domain.invalid>
To: <removed_email_address@domain.invalid>
Sent: 2006-03-11 10:02 AM
Subject: Re: [Rails] XML Databinding frameworks
Ben M. (Guest)
on 2006-03-11 21:05
(Received via mailing list)
Hey that's cool. Write an XSLT to trasform Dia's uml/xml format to your
xml and one could
generate a model from a uml diagram. Hmm, and perhaps one could write an
XSLT to trasform
your xml representation of the model into a DDL.

b
Bob H. (Guest)
on 2006-03-12 17:46
(Received via mailing list)
Hi Bill,

Thanks! I'm finishing up an application for my company that uses it.
When that is done I'll be releasing it. It is looking like a week or
two. I might make a point release soon because I've found a couple of
problems (xampl fighting with RoR) and a few bug fixes. Even without
being  a plug-in it is very easy to use with RoR.

Cheers,
Bob

On Mar 11, 2006, at 12:00 PM, Bill W. wrote:

> ----- Original Message -----
>> I'll be releasing it as a plug-in for Rails soon.
>>> Rails or Ruby?
>> ----
>> Rails mailing list
>> removed_email_address@domain.invalid
>> http://lists.rubyonrails.org/mailman/listinfo/rails
> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails

----
Bob H.                  -- blogs at <http://www.recursive.ca/
hutch/>
Recursive Design Inc.          -- <http://www.recursive.ca/>
Raconteur                      -- <http://www.raconteur.info/>
xampl for Ruby                 -- <http://rubyforge.org/projects/xampl/>
Bob H. (Guest)
on 2006-03-12 18:04
(Received via mailing list)
On Mar 11, 2006, at 2:04 PM, Ben M. wrote:

> Hey that's cool. Write an XSLT to trasform Dia's uml/xml format to
> your xml and one could generate a model from a uml diagram. Hmm,
> and perhaps one could write an XSLT to trasform your xml
> representation of the model into a DDL.

Hi Ben,

The xampl->DDL was done once. The Java version of xampl has been
around for a long time. There have been some pretty large scale
applications written in it. We wrote a translator from xampl to and
from DDL in an afternoon (it supported Oracle and Sybase) and a
different one to/from mysql. I think a xampl to/from ActiveRecord
Migrations would be pretty straight forward. One thing to note
though, in Java the XML-in-a-file was *significantly* faster than
using a DB -- and nothing comes near the performance of xml in Perst
or JDBM (I still marvel at how fast those two packages are). Now Ruby
is a different story of course, since Ruby really cannot keep up with
Java once Java gets going, and it is definitely worth a little
experiment (REXML isn't nearly fast enough so I wrote an XML pull
parser that is included in xampl, and I've also written a Ruby based
format that is 5-10 times faster than XML (I tried YAML but there
were some weird performance characteristics that I didn't like)).

As for UML to xampl... well, xampl works *very* hard to not restrict
its model and that, I think, might frustrate a UML designer. I've
discussed the reasoning behind this someplace, but briefly, xampl
programs tend to be long-running programs that transform the object
structures over time. This makes it enforcement of anything like a
schema a bit problematic. What I normally do is enforce schemas (if
I'm going to bother at all) at 'import' and 'export' time, *not*
during the execution of the program nor when persisting the objects.

Cheers,
Bob

>> On Mar 10, 2006, at 11:00 AM, Harm de Laat wrote:
>>> _______________________________________________
>> _______________________________________________
>> Rails mailing list
>> removed_email_address@domain.invalid
>> http://lists.rubyonrails.org/mailman/listinfo/rails
> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails

----
Bob H.                  -- blogs at <http://www.recursive.ca/
hutch/>
Recursive Design Inc.          -- <http://www.recursive.ca/>
Raconteur                      -- <http://www.raconteur.info/>
xampl for Ruby                 -- <http://rubyforge.org/projects/xampl/>
Brez! !. (Guest)
on 2006-04-07 09:45
Has this been released?  Thanks.

Bob H. wrote:
> Well the thing I wrote: <http://rubyforge.org/projects/xampl/> --
> xampl's beginnings are as an XML binding but that is only one of the
> things it does.
>
> I'll be releasing it as a plug-in for Rails soon.
>
> Cheers,
> Bob
>
> On Mar 10, 2006, at 11:00 AM, Harm de Laat wrote:
>
>> _______________________________________________
>> Rails mailing list
>> removed_email_address@domain.invalid
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>
> ----
> Bob H.                  -- blogs at <http://www.recursive.ca/
> hutch/>
> Recursive Design Inc.          -- <http://www.recursive.ca/>
> Raconteur                      -- <http://www.raconteur.info/>
> xampl for Ruby                 -- <http://rubyforge.org/projects/xampl/>
Bob H. (Guest)
on 2006-04-11 18:27
(Received via mailing list)
Yes, late last year. <http://rubyforge.org/projects/xampl/>

It needs an update, but it mostly works well with Rails.

Cheers,
Bob

On Apr 7, 2006, at 1:45 AM, brez! !! wrote:

>> Cheers,
>> Bob H.                  -- blogs at <http://www.recursive.ca/
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails

----
Bob H.                  -- blogs at <http://www.recursive.ca/
hutch/>
Recursive Design Inc.          -- <http://www.recursive.ca/>
Raconteur                      -- <http://www.raconteur.info/>
xampl for Ruby                 -- <http://rubyforge.org/projects/xampl/>
This topic is locked and can not be replied to.