This is a known issue with empty portals and the web-published FMPXMLRESULT grammar. The XML export using the same grammar is correct.
We have been advised that an FMS12 fix will be done, but not when.
-- sent from my iPhone4 --
the newer fmresultset XML grammar doesn't have that problem so maybe you can switch that one while we wait on the fix?
That's great advice, Wim, but anyone using FX.php is using the FMPXMLRESULT grammar for web-publishing. This bug needs to be squashed!
and it will, see this thread <https://fmdev.filemaker.com/message/81435#81435>