Inject auto generated uids into Attributes.

Script was not set to inject any automatically 
generated uids into an Element Attribute.

This is required to maintain the relationship 
between XML data and enumeration index.