Scala - modifying nested elements in xml

后端 未结 7 629
太阳男子
太阳男子 2020-12-02 11:11

I\'m learning scala, and I\'m looking to update a nested node in some xml. I\'ve got something working but i\'m wondering if its the most elegant way.

I have some xm

7条回答
  •  自闭症患者
    2020-12-02 12:07

    You can use Lift's CSS Selector Transforms and write:

    "subnode" #> ("version *" #> 2)
    

    See http://stable.simply.liftweb.net/#sec:CSS-Selector-Transforms

提交回复
热议问题