com.scalaxal.example.ReadWriteExample1.scala Maven / Gradle / Ivy
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...")
}
}