I kind of having problems with ExtractValue Function in MySQL.
Here is my sample XML:
<As>
<A>
<B>Chan</B>
</A>
<A>
<B>Shey</B>
</A>
<A>
<B>Bob</B>
</A>
</As>
Here is my current query:
SELECT ExtractValue(@XML, '/As/A/B')
Here is the result:
CHAN SHEY BOB
Here is what i want:
CHAN
SHEY
BOB
Can someone please help me achieve this.. thanks.
This problem was answered here:
Parse an XML string in MySQL
The solution from that article should workd if you change child to “B”: