# XML Databinding frameworks

**URL:** <https://www.ruby-forum.com/t/xml-databinding-frameworks/79511>\
**Category:** Rails\
**Created:** [March 10, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511 "2006-03-10T17:05:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 10, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/1 "2006-03-10T17:05:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 10, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/2 "2006-03-10T18:25:39Z")

</div>

This is all I’ve been able find for Ruby to XML mapping:

[http://rubyforge.org/projects/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

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 11, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/3 "2006-03-11T17:03:32Z")

</div>

Well the thing I wrote: [http://rubyforge.org/projects/xampl/](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](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Bob H. – blogs at \<[http://www.recursive.ca/](http://www.recursive.ca/)  
hutch/\>  
Recursive Design Inc. – [http://www.recursive.ca/](http://www.recursive.ca/)  
Raconteur – [http://www.raconteur.info/](http://www.raconteur.info/)  
xampl for Ruby – [http://rubyforge.org/projects/xampl/](http://rubyforge.org/projects/xampl/)

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 11, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/4 "2006-03-11T18:16:41Z")

</div>

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](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: 2006-03-11 10:02 AM  
Subject: Re: [Rails] XML Databinding frameworks

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 11, 2006, 8:05pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/5 "2006-03-11T20:05:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 12, 2006, 4:46pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/6 "2006-03-12T16:46:04Z")

</div>

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](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Bob H. – blogs at \<[http://www.recursive.ca/](http://www.recursive.ca/)  
hutch/\>  
Recursive Design Inc. – [http://www.recursive.ca/](http://www.recursive.ca/)  
Raconteur – [http://www.raconteur.info/](http://www.raconteur.info/)  
xampl for Ruby – [http://rubyforge.org/projects/xampl/](http://rubyforge.org/projects/xampl/)

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [April 7, 2006, 7:45am UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/7 "2006-04-07T07:45:38Z")

</div>

Has this been released? Thanks.

Bob H. wrote:

> Well the thing I wrote: [http://rubyforge.org/projects/xampl/](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](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> * * *
> 
> Bob H. – blogs at \<[http://www.recursive.ca/](http://www.recursive.ca/)  
> hutch/\>  
> Recursive Design Inc. – [http://www.recursive.ca/](http://www.recursive.ca/)  
> Raconteur – [http://www.raconteur.info/](http://www.raconteur.info/)  
> xampl for Ruby – [http://rubyforge.org/projects/xampl/](http://rubyforge.org/projects/xampl/)

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [March 12, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/8 "2006-03-12T17:04:14Z")

</div>

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](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Bob H. – blogs at \<[http://www.recursive.ca/](http://www.recursive.ca/)  
hutch/\>  
Recursive Design Inc. – [http://www.recursive.ca/](http://www.recursive.ca/)  
Raconteur – [http://www.raconteur.info/](http://www.raconteur.info/)  
xampl for Ruby – [http://rubyforge.org/projects/xampl/](http://rubyforge.org/projects/xampl/)

---

<div class="post-metadata">

**Author:** ![Harm\_de\_Laat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/9de053/32.png) [@Harm\_de\_Laat](https://www.ruby-forum.com/u/Harm_de_Laat)\
**Post date:** [April 11, 2006, 4:27pm UTC](https://www.ruby-forum.com/t/xml-databinding-frameworks/79511/9 "2006-04-11T16:27:48Z")

</div>

Yes, late last year. [http://rubyforge.org/projects/xampl/](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/](http://www.recursive.ca/)  
> > Rails mailing list  
> > removed\_email\_address@domain.invalid  
> > [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Bob H. – blogs at \<[http://www.recursive.ca/](http://www.recursive.ca/)  
hutch/\>  
Recursive Design Inc. – [http://www.recursive.ca/](http://www.recursive.ca/)  
Raconteur – [http://www.raconteur.info/](http://www.raconteur.info/)  
xampl for Ruby – [http://rubyforge.org/projects/xampl/](http://rubyforge.org/projects/xampl/)
