0

I am new to esql. I have an XML similar to the one given below

<vehicles>
  <car make="Ford">
   <model>Mustang</model>
   <year>1965</year>
  </car>
  <car make="Chevrolet">
   <model>Nova</model>
   <year>1967</year>
  </car>
</vehicles>

When i give the Xpath as "vehicles/car", I need a function to get two XML as given below as output.

<car make="Ford">
  <model>Mustang</model>
  <year>1965</year>
</car>

<car make="Chevrolet">
 <model>Nova</model>
 <year>1967</year>
</car>

Thanks in advance. Biju

4

1 回答 1

-1

关于什么

//car[1]

//car[2]

一个很好的 xpath 测试工具http://www.bit-101.com/xpath/

于 2014-08-08T07:58:23.493 回答