Best practice to use multiple XML processors?
<p>My project is using  multiple implementations of XML processors (Java default, saxon 9, xerces 2). So, for xml processing I have to tell which class to load for DocumentBuilderFactory and XPathFactory etc.<br>
We can do it in several ways as defined in <a href="http://download.oracle.com/javase/6/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#DocumentBuilderFactory%28%29" rel="nofollow">Java docs</a>. What is good practice for this:</p>

<ol>
<li>Use Constructor as introduced in Java 6 (Project already has dependency on Java 6)?  </li>
<li>Use the javax.xml.parsers.DocumentBuilderFactory/XPathFactory system properties?  </li>
<li>Use the properties file "lib/jaxp.properties" in the JRE directory?  </li>
<li>Use the Services API?  </li>
</ol>
