Also, what OS are you running? Assuming Windows XP, I think the max command line length is 8192 chars, and previous versions of windows are like 2048. So the command plus the variable would have to be less than that.
Have you looked into alternatives, like importing your XML file into your database directly?