Gerry Shaw wrote: >>Could someone go into a little more detail here? (I'm a >>little knew to nant and trying to catch up :) >> >> >>-----Original Message----- >>From: Gerry Shaw >> > Why not have the element class have a default >>implementation based on >> >>>the Attributes and if a task chooses to override this for >>>some reason it can. >>> > > >Provide a virtual method in the Element class that can create the schema >for that element. This implementation would simply use [attributes] >attached to the class to determine the required xml attributes and xml >child elements. Classes that inherit from Element could then override >this method and perform more sophisticated validation. > Nice clear explanation Gerry :) Aah a good idea to use [attributes] to indicate metadata attributes as opposed to xml attributes. That was driving me crazy.
Ian _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers