2007/10/20, Vizcayno Tamparantan <[EMAIL PROTECTED]>: > >>> import clr > >>> clr.AddReferenceToFile("activedsNET.dll") #Seems not be problem here > >>> dir(activedsNET) > Traceback (most recent call last): > File , line 0, in ##245 > NameError: name 'activedsNET' is not defined > > >>> dir() > ['__builtins__', '__doc__', '__name__', 'clr', 'sys'] #ActivedsNET is not > showed
Adding the reference and importing the namespace are separate steps. Therefore, to use System.Xml namespace contained in System.Xml.dll, you do: import clr clr.AddReference('System.Xml') import System.Xml Referenced assemblies may contain multiple namespaces. -- Seo Sanghyeon _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com