When you get an error on a portal form, such as "Error Loading XML Document" you can hit Ctrl+Alt+A - The portal will bring up the code behind the screens to troubleshoot where the error is occurring.