Extract a subset of XML file using XSL

前端 未结 3 1457
伪装坚强ぢ
伪装坚强ぢ 2021-01-04 13:04

I have this XML file:


    error Code
    msg
    

        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 13:46

    One way is to pass a parameter containing the node name into the XSLT and use the parameter passed in with the name() function to match the dynamic node.

    Edit:

    But in this simple case either of the other answers suggesting ResponseParameters//* or ResponseParameters/* are a far simpler solution.

提交回复
热议问题