I have WCF service that should return a xml schema to my web application, but my current code returns the following error (cannot serialize):

Type 'System.Xml.Xml Attribute' cannot be serialized. Consider marking
it with the DataContractAtt ribute attribute, and marking all of its
members you want serialized with the DataMemberAttri bute attribute.

How should I return it (what do I need to use from XMLSchema...