Logo

Programming-Idioms

History of Idiom 103 > diff from v11 to v12

Edit summary for version 12 by Ajay:
New Scala implementation by user [Ajay]

Version 11

2019-12-17, 15:57:13

Version 12

2020-03-10, 18:10:45

Idiom #103 Load XML file into struct

Read from file data.xml and write its content into object x.
Assume the XML data is suitable for the type of x.

Idiom #103 Load XML file into struct

Read from file data.xml and write its content into object x.
Assume the XML data is suitable for the type of x.

Imports
scala.xml.XML
Code
val xml = XML.loadFile("path/yourfile.xml")