Jim Hu wrote:
Ran into a weird dump problem yesterday, which has me
wondering if
there's a problem with my artificially created xml for upload.
Here's what happens. I have a script that builds wiki pages from an
external source and embeds them in xml for upload via importDump.
The script can be toggled to either generate a single page or a bunch
of them. The same script failed to load some pages that load just
fine if you specify them individually, but ImportDump.php does NOT
crash during the import.
I understand the failing is your building script. What does it load?
Wiki pages from Special:Export?
How does this script handle the XML? Are you using some XML library?
Search and replace?
I suspect that there is something wrong with the
upstream items, but
I can't find it. The Brown Univ XML validator complains about the
following:
I guess these has to do with not having a DOCTYPE declaration