cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.net Split transaction based on xml parsing

Sean.Sweitzer
Explorer

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?

1 REPLY 1

Mario.Morelli
Architect

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



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

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