I have string like below:
string:
"//cXML/Request/OrderRequest/ItemOut[]/ItemDetail/Extrinsic[]/home/idea[]"
if I seperate the string with “[]” then the output should be like this
output:
//cXML/Request/OrderRequest/ItemOut[]
/ItemDetail/Extrinsic[]
/home/idea[]
Some times my string like this below also:
string: “//cXML/Request/OrderRequest/ItemOut[]/@quantity”
Then out put should be like below
Output:
//cXML/Request/OrderRequest/ItemOut[]
/@quantity
How about:
This will include the
[]in the split results.