*
* @param xml node type definition file
* @throws IOException if the node type definition file cannot be read
*/
public NodeTypeReader(InputStream xml) throws IOException {
walker = new DOMWalker(xml);
namespaces = walker.getNamespaces();
NamespaceResolver nsResolver = new AdditionalNamespaceResolver(namespaces);
resolver = new DefaultNamePathResolver(nsResolver);
valueFactory = new ValueFactoryQImpl(qValueFactory, resolver);
}