Hi every one,
I am trying to retrieve a tag data from an xml which is stored in DB2 table in raw xml format. I tried in 2 ways.
1) using string search in query and search entire xml, but its making DB2 query to consume more and I cannot use this as i have to retrieve around 80 strings like this.
2) Using XML CAST and XMl query key words.
XMLCAST (
XMLQUERY ('//AAAAAA/bbbbb/tagdata'
PASSING XML_DATA)
AS VARCHAR(11) )
FROM XYZ
above query executing successful but not retrieving tag data.
Could you please help on this.