There's an entry in the Perl XML FAQ about this.
Loading documents into Firefox is not a particularly useful test.