Monday, November 08, 2010 at 12:07 AM.

system.verbs.builtins.xml.rss.findModuleDriver

on findModuleDriver (nsUri, adradrdriver) {
	<<Changes
		<<9/29/02; 7:10:26 PM by JES
			<<Created.
			<<Given the namespace URI of an element, find the module driver table associated with the URI. User drivers are stored in user.xml.rss.moduleDrivers, and built-in drivers are in xml.rss.moduleDrivers. User drivers take precidence over built-in drivers.
	on findInTable (adrtable) {
		local (nomad = @adrtable^.[nsUri]);
		if defined (nomad^) {
			try {
				while typeOf (nomad^) == addressType {
					nomad = nomad^}};
			adradrdriver^ = nomad;
			return (true)};
		return (false)};
	if findInTable (@user.xml.rss.moduleDrivers) {
		return (true)};
	if findInTable (@xml.rss.moduleDrivers) {
		return (true)};
	return (false)}
<<bundle //test code
	<<local (adrdriver)
	<<findModuleDriver ("http://backend.userland.com/blogChannelModule", @adrdriver)
	<<dialog.notify (adrdriver)



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.