0 Replies Latest reply on Dec 22, 2008 4:16 AM by dominicmessenger

    Declaring dynamic class at runtime

    dominicmessenger
      I have developed a basic data-model framework that uses XSD schemas to define the properties in a dynamic class. The base class is a dynamic class (XmlProxy). This works fine if each complex type is also fully defined (eg Contact extends XmlProxy).
      With one complex schema I have over 40 complex types I need to define. I'd rather do this at runtime - generate a dynamic class based on the complex types in a schema.

      Whilst I am au fait with dynamically modifying a pre-defined class at runtime, is there any way of actually declaring classes at runtime and adding them to the current scope?