KennethLouieCPalabrica
New Member
Suppose that I have a XML file like the following:\[code\]<conf> <something> blablabla </something></conf>\[/code\]I want to retrieve the string \[code\]blablabla\[/code\]I tried with:\[code\]val data = http://stackoverflow.com/questions/15817640/XML.loadFile("conf.xml")val st = data \\ "conf" \\ "something"println(st)\[/code\]but as output I have got:\[code\]<something>blablabla</something>\[/code\]The I have added the lines of code:\[code\]st match { case <something>{ txt }</something> => println(txt)}\[/code\]but I have got a \[code\]scala.MatchError\[/code\].What can I try?Can you provide me some help?