【发布时间】:2020-08-20 21:40:50
【问题描述】:
我声明了以下变量
TEXT='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://ws.chpconsulting.com/alfa/requestcontext/v1" xmlns:v11="http://ws.chpconsulting.com/alfa/user/v1"><soapenv:Header><v1:context></v1:context></soapenv:Header><soapenv:Body><v11:load><!--Optional:--><userId>IN2Z83</userId></v11:load></soapenv:Body></soapenv:Envelope>'
如何在shell脚本中获取userID标签值
【问题讨论】:
-
使用 XML 解析器并读取 How to Ask。