Click here to Skip to main content
15,893,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all

I am getting the values like this

abc,bca

now i want to write it like this

abc
bca


Please tell mw how to do this
Posted
Comments
Richard MacCutchan 19-Nov-15 7:55am    
Well generally one would write some code to read the values, split or parse them into their separate parts, and write or display them in the required manner.

But since you have given no context to your query it's anyone's guess how best to do it.

1 solution

Have a look at this list of XPath functions: XSLT, XPath, and XQuery Functions[^]

Specifically look into
XML
fn:substring-before(string1,string2)
fn:substring-after(string1,string2)
fn:tokenize(string,pattern)

and then pick a winner.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900