selecting null value into xmlelement
416627Feb 22 2005 — edited Aug 23 2005I'm trying to select from relational tables into xml. All is fine EXCEPT that I cannot show NULL values as
<element></element> .
I have a workaround in nvl(column, ' ') which shows up as
<element> </element> <!-- close, but no cigar -->
Most functions will not even list the null value:
XMLFOREST, SYS_XMLGEN, DBMS_XMLGEN
Is there something that would work?
Should I try DBMS_XMLQUERY?
Would it make a difference if I had an object type (UDT) defined on the relational query?
Other comments, suggestions, or bright remarks?
Thanks in advance, Oracle db version 9.2.0.5 on AIX.
-tom
btw I searched this forum back 'till Aug 2004, and did not see an answer. Other people have asked this question, tho.