Regular expression to retrieve child tags of an xml irrespective of its position

Solfgeoxome

New Member
What is the regular expression to retrieve one of the child tag's (ASObject) content of the tag with grouping expression irrespective of the position of the child tag in the below xml. It may come as first one or the second one. But I wanted to retrieve the ASObject which has "postinjr" wage source code irrespective of its position. You can provide me the solution here...http://gskinner.com/RegExr/?2usad\[code\]<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>\[/code\]
 
Back
Top