I am bolting query-dispatcher awareness onto Michael Cleverly's nstcl library, and I'm having trouble parsing the xql files. I was wondering if anyone knows why the xql files don't use CDATA wrappers around the querytext sections?
In other words, instead of this
<?xml version="1.0"?>
...
<fullquery name="db_api_acceptance_test_select_asdf_sysdate_from_food_2">
<querytext>
select asdf, sysdate as datestr from footest where asdf > :asdf
</querytext>
</fullquery>
which is not valid XML (and thus chokes tDOM), why not use this:
<?xml version="1.0"?>
...
<fullquery name="db_api_acceptance_test_select_asdf_sysdate_from_food_2">
<querytext><![CDATA[
select asdf, sysdate as datestr from footest where asdf > :asdf
]]></querytext>
</fullquery>
I'm doing a regsub find-replace to make them into parser-friendly xql, but I'm wondering if fixing them at the source is an option. Non-standard xml seems to defeat the purpose ![]()
Request notifications