Intent

an implementation of the basic spec in Language:Scala utilizing Scala's builtin XML handling features.

Motivation

This implementation shows the use of XML literals which are built into Scala at language level. At no point, an object model is generated beyond Scala's internal XML representation.

Architecture

All relevant code is contained in CompanyXMLReader.scala. The cut and total capabilities are contained in a singleton object by the same name. In Validator.scala, a default XML Schema validator is provided for testing purposes.

Usage

This implementation uses sbt 0.10 as build tool, available at http://github.com/harrah/xsbt/. After installing sbt just change into the project directory and run

 sbt

to create the project, followed by

 sbt update

This should fetch any needed dependencies. After that you can compile the project by typing

 sbt compile

and then

 sbt test

to run the tests.

This contribution has been tested with Scala Version 2.9.0.1, sbt Version 0.10 and Technology:Specs Version 1.4.


There are no revisions for this page.

User contributions

    This user never has never made submissions.

    User edits

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.