我有以下输入 NetIQ IDM 策略的文档:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.6.2.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<output>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope">
<soap-env:Body>
<status dest-dn="" event-id="0" level="success">
<application>DirXML</application>
<module>wdStudio</module>
<object-dn>\IAMT-WD-VAULT\OSU\vault\users\IDM800159</object-dn>
<component>Publisher</component>
<operation-data op-email_id="bruce.wayne@batcave.com" op-employee_id="100000021" op-idm_id="IDM800159" op-med_ctr_id="" op-nameN="wayne.206"/>
</status>I am here</soap-env:Body>
</soap-env:Envelope>
</output>
</nds>
我想提取操作数据值,使其成为代码的一部分,如下所示:
<op-email_id>bruce.wayne@batcave.com</op-email_id>
<op-employee_id>100000021</op-employee_id>
<op-idm_id>IDM800159</op-idm_id>
<op-nameN>wayne.206</op-nameN>
请注意,由于 op-med_ctr_id 是空白/空/空,因此不会添加它。最终目标是将其添加为 netIQ 中 SOAP 驱动程序响应的一部分。