scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and Web Services Description Language (wsdl) as the input file.
From schema documents scalaxb will generate Scala source files containing case classes to represent the data and typeclass instances to turn XML documents into an object, and the object back to XML.
The latest is 0.7.2. Some things may not work. I'd really appreciate if you could run it against your favorite xsd file and let me know the result.
There are currently four ways of running scalaxb:
- command line app
- sbt plugin sbt-scalaxb
- maven plugin mvn-scalaxb
- web API scalaxb-heroku hosted on heroku
sbt-scalaxb for sbt 0.11.3
To call scalaxb from sbt 0.11.3, put this in your
resolvers ++= Seq( "sonatype-public" at "https://oss.sonatype.org/content/groups/public") addSbtPlugin("org.scalaxb" % "sbt-scalaxb" % "X.X")
and this in
scalaxbSettings packageName in scalaxb in Compile := "xxx" sourceGenerators in Compile <+= scalaxb in Compile
command line app scalaxb
Further info is available at scalaxb.org.
If you're having problem with scalaxb, please take a moment and read issue reporting guideline.
It's the MIT License. See the file called LICENSE.