使用分组表达式检索标签的子标签(ASObject)内容之一的正则表达式是什么,而与以下xml中子标签的位置无关。它可能是第一个或第二个。但我想检索具有“postinjr”工资源代码的 ASObject,无论其位置如何。您可以在这里为我提供解决方案... http://gskinner.com/RegExr/?2usad
<insuredwages>
<ASObject mappedClass="com.taliantsoftware.claims.wages.InsuredWagesDTO" encoding="0">
<wagescategorytypecode tagClass="String">postinjr</wagescategorytypecode>
<agreementid tagClass="double">2654630.0</agreementid>
<jobtitle tagClass="String">Worker</jobtitle>
<createddatetime tagClass="Date">2012-10-01 13:28:05.213 CDT</createddatetime>
<new tagClass="boolean">false</new>
<employmentstatustypename tagClass="String">Disabled</employmentstatustypename>
<updated tagClass="boolean">false</updated>
<voided tagClass="boolean">false</voided>
<wagescategorytypename tagClass="String">Post Injury</wagescategorytypename>
<employmentstatustypecode tagClass="String">dsabld</employmentstatustypecode>
<useridcreated tagClass="double">111.0</useridcreated>
<userupdated tagClass="String"/>
<recordid tagClass="double">1030237.0</recordid>
<usercreated tagClass="String">TESTER QA</usercreated>
</ASObject>
<ASObject mappedClass="com.taliantsoftware.claims.wages.InsuredWagesDTO" encoding="0">
<agreementid tagClass="double">2654630.0</agreementid>
<wagescategorytypecode tagClass="String">preinjr</wagescategorytypecode>
<createddatetime tagClass="Date">2012-10-01 13:28:00.291 CDT</createddatetime>
<new tagClass="boolean">false</new>
<updateddatetime tagClass="Date">2012-10-01 13:28:00.291 CDT</updateddatetime>
<updated tagClass="boolean">false</updated>
<voided tagClass="boolean">false</voided>
<wagescategorytypename tagClass="String">Pre-Injury</wagescategorytypename>
<useridcreated tagClass="double">111.0</useridcreated>
<userupdated tagClass="String">TESTER QA</userupdated>
<useridupdated tagClass="double">111.0</useridupdated>
<recordid tagClass="double">1036667.0</recordid>
<usercreated tagClass="String">TESTER QA</usercreated>
</ASObject>
</insuredwages>