Question: how to add attribute in xsd?
Answer: Adding Attributes to Elements Open Attributes/Exercises/Song. xsd for editing. Change the schema so that the Title element can take the Type attribute, which is of type xs:string. Change the schema so that the Stanza element can take an Artist attribute, which is of type xs:string.