XML to JSON with Scala

前端 未结 3 649
滥情空心
滥情空心 2020-12-30 10:48

For a XML snippet like this:

val fruits =

  
    apple
    ok
           


        
3条回答
  •  孤独总比滥情好
    2020-12-30 11:15

    I think you should use ScalaXB to turn the XML into scala classes and then write the appropriate toJson bits to output Json.

    Should work a treat.

提交回复
热议问题