This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Mapping case classes to XML ?

2 replies
fanf
Joined: 2009-03-17,
User offline. Last seen 2 years 30 weeks ago.
Hello,

Is there somewhere a library that allows mapping of immutable Scala structures (Map, Seq, Case classes, ...) from and to XML, like what is existing for JSON (Lift-json and other ?) (or in Java something like XStream) ?

Thanks !
-- 
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com
DaveScala
Joined: 2011-03-18,
User offline. Last seen 1 year 21 weeks ago.
Re: Mapping case classes to XML ?

Maybe scalaxb (last version is 0.6.2 still alpha)
http://scalaxb.org
Example usage:

http://scalaxb.org/running-scalaxb

Note:
See: http://scalaxb.org/intro
status

This is still at ALPHA state, and many things don't work. I'd really
appreciate if you could run it against your favorite xsd file and let
me know the result.

On 28 aug, 10:20, Francois wrote:
> Hello,
>
> Is there somewhere a library that allows mapping of immutable Scala
> structures (Map, Seq, Case classes, ...) from and to XML, like what is
> existing for JSON (Lift-json and other ?) (or in Java something like
> XStream) ?
>
> Thanks !
>
> --
> Francois ARMANDhttp://fanf42.blogspot.comhttp://www.normation.com

fanf
Joined: 2009-03-17,
User offline. Last seen 2 years 30 weeks ago.
Re: Re: Mapping case classes to XML ?

On 28/08/2011 12:35, Dave wrote:
> Maybe scalaxb (last version is 0.6.2 still alpha)
> http://scalaxb.org
> Example usage:
>
> http://scalaxb.org/running-scalaxb

Interesting, thanks !

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland