I am using the flwg code and am getting the error:
09:53:29 ORA-00931: missing identifier
SELECT XMLELEMENT("Items", XMLATTRIBUTES('Value' as "xmlns:tables"),
XMLELEMENT("Item", XMLATTRIBUTES(x.code as "code",x.desc as "desc"))
FROM (SELECT distinct xml.extract(a.xml, 'tables:code/text()',
xml.getns('NS_TABLES')) as extractedcode,
xml.extract(a.xml, 'tables:description/text()', xml.getns('NS_TABLES')) as edescription
FROM MyTable a
WHERE a.ACTIVE='Y')x
Can anyone please tell what identfier am i missing?