java Example
isObjectModelSupported(String)
java Example
http\://java.sun.com/jaxp/xpath/dom=org.acme.DomXPathFactory
- uri
- Identifies the underlying object model. The specification only defines the URI XPathFactory.DefaultObjectModelUri, http://java.sun.com/jaxp/xpath/dom for the W3C DOM, the org.w3c.dom package, and implementations are free to introduce other URIs for other object models.
Documentation for this section has not yet been entered.
Type Reason Javax.Xml.Xpath.XPathFactoryConfigurationException If the specified object model is unavailable. Java.Lang.NullPointerException If uri is null. Java.Lang.IllegalArgumentException If uri.length() == 0.
java Example
isObjectModelSupported(String)
java Example
http\://java.sun.com/jaxp/xpath/dom=org.acme.DomXPathFactory
Get a new XPathFactory instance using the specified object model.
To find a XPathFactory object, this method looks the following places in the following order where "the class loader" refers to the context class loader:
If everything fails, an XPathFactoryConfigurationException will be thrown.
Tip for Trouble-shooting:
See Java.Util.Properties.Load(System.IO.Stream) for exactly how a property file is parsed. In particular, colons ':' need to be escaped in a property file, so make sure the URIs are properly escaped in it. For example: