XML : Modifying xml contents scala

I have a problem similar to Scala - modifying nested elements in xml I am trying to modify content in an element and I have to call a function to get the content. For eg.

      <foo>         <bar>            <version>function()</version>         <bar>      <foo>    

This function is getting called almost every time due to complexity. I tried to surround it by pattern matches like searching for which is really not working out. Any suggestions ?

No comments:

Post a Comment