I have the query below which returns an XMLtype when I run it all I get is black square in the SQL window.I could of course convert to CLOB but when can I expect it to be displayed in PL/SQL developer.
SELECT XMLElement("Station",
XMLAttributes(ss.station_name AS "Name"),
XMLAgg(
XMLElement("Sales_Channel",
XMLForest(sc.channel_name AS "Name",
sc.sales_channel_id AS "sales_channel_id"))))
FROM sales_station ss INNER JOIN sales_channel sc
ON sc.sales_station_id = sc.sales_station_id
GROUP BY ss.station_name
SELECT XMLElement("Station",
XMLAttributes(ss.station_name AS "Name"),
XMLAgg(
XMLElement("Sales_Channel",
XMLForest(sc.channel_name AS "Name",
sc.sales_channel_id AS "sales_channel_id"))))
FROM sales_station ss INNER JOIN sales_channel sc
ON sc.sales_station_id = sc.sales_station_id
GROUP BY ss.station_name