CreateInstance method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sneha0608
    New Member
    • Oct 2007
    • 11

    #1

    CreateInstance method

    what i am doing is i am reading an xml file...one node has the name of the class i need to instantiate...i am getting the name in the form of string...
    how to use create instance in dis case??

    for eg:on parsing the file i get the name of class in str="abc",i need to instantiate dis class abc with createinstance

    hope it is clear..
    what shud be done??
    thaks in advance
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Here is an article that may help:
    Creating a Plug-In Framework

    Comment

    • sneha0608
      New Member
      • Oct 2007
      • 11

      #3
      Thank you very much :-)

      Sneha

      Comment

      • KnightHack
        New Member
        • Oct 2007
        • 15

        #4
        Imports System.xml
        Dim xmlDoc As New XmlDocument
        Dim Nodevalue As XmlNode
        xmlDoc.Load(XML Path)
        NodeValue = .SelectSingleNo de("//*[local-name()='Bluetoo thProfile']")
        If Not NodeValue Is Nothing Then DoHa.BluetoothP rofile = NodeValue.Inner Xml()

        'Bloothprofile is node name.

        Comment

        Working...