NET (Agent, Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

.net Split transaction based on xml parsing

Explorer

.net Split transaction based on xml parsing

I have a method which takes in a single argument that is an xml string.  Is there a way to split these transactions based on a tag in the xml?

Tags (1)
.net Split transaction based on xml parsing
1 REPLY 1
Architect

Re: .net Split transaction based on xml parsing

Hi

 

Yes you can use something like below depending on where the value is, invoked object, return value or parameter value. Where xmlpart1 and xmlpart 2 are variables and should be replaced with the string pieces which precede the value you are looking for and after, to capture the tag

 

ToString().Split(string/xmlpart1).[1].Split(string/xmlpart2).[0]

 

Ciao



Learn more about me in the Community Member Spotlight Q & A