There's an existing, internal database we can't mess with, only read from, and a new project that needs data from this database, developed by a third-party. I need to build some middleware to make the two talk. Following Example 1 from the XML::Generator::DBI Tutorial, I have a working solution that reads data from the database and returns XML to the third-party system. But I need to do some data cleanup in my middleware.
For example, some of the entries in the database have years associated with them, and some do not. Except, instead of a null value, there is a 0. So I need to change 0 to null before returning my XML. There are a couple other fields that need similar tweaks.
How do I "intercept" the data flow between XML::Generator::DBI and XML::Handler::YAWriter so that I can make the changes that Perl is so good at doing?
In reply to Change data on the fly (DBI to XML) by apu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |