![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
SQL -> XML Conversionby set_uk (Pilgrim) |
on Apr 09, 2003 at 08:26 UTC ( #249168=perlquestion: print w/replies, xml ) | Need Help?? |
set_uk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to convert Oracle SQL query output to XML.
I'm sure someone has tackled this issue previous to me.
I am using the following code to write an XML file:-
Problem is when I have NULL entries in a database column I get no XML element - when what I want is an empty element. This is because I sometimes want to manipulate the XML into CSV and to have it formatted correctly it needs a comma for each NULL - which I cant do unless I can process a Node in the nodeset via XSL. Now I know I could change my SQL to wrap these columns with NVL but I thought there might be a way with DBD/Perl to process the NULL's and maintain the elements
Back to
Seekers of Perl Wisdom
|
|