I'm not sure if this will solve your problem, but try setting the "ServerHTTPRequest" flag before loading the doc. Look up the DOMDocument.setProperty method for more information. Hope this helps, Jonathan