}
public INodeSet parseDocument(final InputStream input) throws ResourceFormatParserException {
final NodeSetImpl nodeReceiver = new NodeSetImpl();
try {
new NodesXMLParser(input, nodeReceiver).parse();
} catch (NodeFileParserException e) {
throw new ResourceFormatParserException(e);
}
return nodeReceiver;
}