hello,i'm working on a code generator for state machines and i need to define an attribute as a simple type enumeration but i want to get the values from an xml document. For example, if this is the xml doc:<STATES> <STATE Name="LIGHTS_ON"/> <STATE Name="LIGHTS_OFF"/></STATES>I need to use the Name attributes an enumeration values in an xsd schema.is that possible? if not, pls give some similar ideas.i've tried different xpath expression but it doesn't seem to work.