Get All the contents between two tags by excluding few tags in it

fredsaul

New Member
I want to retrieve everything between two tags of an xml by excluding few tags within that content. What is the regular epxpression for this? For example,in the below xml I want to extract everything between \[code\]<ASObject mappedClass="com.taliantsoftware.claims.indemnity.PayeeAllocationDTO" encoding="0">\[/code\] and \[code\]</ASObject>\[/code\] by excluding \[code\]<updated tagClass="boolean">false</updated> and <voided tagClass="boolean">false</voided>\[/code\] tags.\[code\]<ASObject mappedClass="com.taliantsoftware.claims.indemnity.PayeeAllocationDTO" encoding="0"> <payeecustomerid tagClass="double">2004570.0</payeecustomerid> <amount tagClass="double">2131.2</amount> <new tagClass="boolean">true</new> <percent tagClass="double">100.0</percent> <updated tagClass="boolean">false</updated> <voided tagClass="boolean">false</voided> <remainderindicator tagClass="boolean">true</remainderindicator> <detailamountstatustypecode tagClass="String">pnd</detailamountstatustypecode> <primary tagClass="boolean">true</primary> <mailtoindicator tagClass="boolean">true</mailtoindicator> <checkgroupnumber tagClass="double">1.0</checkgroupnumber> <detailamountstatustypename tagClass="String">Pending</detailamountstatustypename> </ASObject>\[/code\]
 
Back
Top