XML : How to get the xpath result without any commas or square brackets?

I have a code such as:

  <out:a>  <out:Name Type="First" TypeCode="Best">JAE</out:Name>  <out:Name Type="Last" TypeCode="Best">ADAMS</out:Name>  </out:a>    

When I gave the xpath expression as

  (//*[local-name() = 'Name']/text())[1],(//*[local-name() = 'Name']/text())[2],     

I got the result as [JAE,ADAMS]

How can I give the xpath expression so that I can the result as JAE ADAMS?

No comments:

Post a Comment