XML Creation - Receieving ORA-19206: Invalid value for query or REF CURSOR parameter error
Here is the query
SELECT DBMS_XMLGEN.GETXML ('
select poh.segment1 blanket,poh.comments,poh.start_date,poh.end_date,
CURSOR(select pol.line_num from po_lines_all pol where pol.po_header_id = poh.header_id) LINE_INFO
from po_headers_all poh')XML
DBMS_XMLGEN.GETXML (' select poh.segment1 blanket,poh.comments,poh.start_date,poh.end_date, CURSOR(select pol.line_num from po_lines_all pol where pol.po_header_id = poh.header_id) LINE_INFO from po_headers_all poh'