All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalaxal.example.ReadWriteExample1.scala Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package com.scalaxal.example

import com.scalaxal.io.{XalPrintWriter, XalFileReader, XalFromXml}
import xml.PrettyPrinter
import com.scalaxal.xAL.XAL

/**
 * Author: Ringo Wathelet
 * Date: 31/01/13 
 * Version: 1
 */

object ReadWriteExample1 {
  def main(args: Array[String]) {
    println("....XAL ReadWriteExample1 start...\n")

    val xal = new XalFileReader().getXalFromFile("./xal-files/XAL.XML")
    if (xal.isDefined) {
      val writer = new XalPrintWriter()
      writer.write(xal, new PrettyPrinter(80, 3))
      writer.close()
    }

    println("\n....XAL ReadWriteExample1 done...")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy