Slow Loading XML files - Enable file Caching

Problem
Even small XML files are slow to open.
 
Issue
If the XML file references external XML Schemas, then these Schemas are also loaded in order to provide validation and intellisense, if the schemas are located on a remote server then this can take quite a long time.
External schema may be picked up if the namespaces in the XML file match ones in the XML Schema Library, or if it contains specific references to schemas using the schemaLocation or noNamespaceSchemaLocation attributes.
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/aop">
 
Solution - Caching the schema files.
If the XML Schema files you are using are static (i.e. they don't often change), then you can add them to the cache, they are then stored locally and are much faster to load next time.
If the schema files change you can purge the files from the cache manually.
 
Alternative Solution
If this soluition still does not solve the problem then look at Turning off auto validation.