Splitting XML node based on delimiter 'OR' in SQL server -


i have xml needs splitted based on 'or' . if have 2 or's splitting 2+1 nodes shown below in [xml2]
[xml1]

<rules> <rule text="when familycode = 'abc' , (pricedifferentiatorcode in ('def', 'ghi') or ( pricedifferentiatorcode = 'jkl' , namedifferentiatorcode = 'mno' ) or (pricedifferentiatorcode = 'xyz' , namedifferentiatorcode = 'mno')) 'dummyvalue'" /> </rules> 

[xml2]

<rules> <rule ruletext="when familycode = 'abc' , pricedifferentiatorcode in ('def', 'ghi')  'dummyvalue'" /> <rule ruletext="when familycode = 'abc' , pricedifferentiatorcode = 'jkl' , namedifferentiatorcode = 'mno' 'dummyvalue'" /> <rule ruletext="when familycode = 'abc' , pricedifferentiatorcode = 'xyz' , namedifferentiatorcode = 'mno' 'dummyvalue'" /> </rules>   


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -