How to get between first and last of a specific node in an XML file?

yteriupovt

New Member
Consider I have a file which contains the following data:\[code\] ... <wsdl:message> ... </wsdl:message> <wsdl:message> ... </wsdl:message> <wsdl:message> ... </wsdl:message> ...\[/code\]What would be an appropriate regex to get all data between the first \[code\]<wsdl:message>\[/code\] and the last \[code\]</wsdl:message>\[/code\]?Or alternatively, (as has been suggested), an appropriate XPath solution.The main idea is that I would like to find and replace that portion of data.
 
Back
Top