I've recently been working on a project for my job that is used in writing requirements documents. The application uses XML to sort and store data. I've been working on a schema that is used for validating the document. The problem is, I can't seem to find any answers as to how to define an element that contains a single attribute, and CDATA.
I currently have it defined as such, which I know is wrong.
CODE
<xsd:element name = "comment" type="xsd:string">
<xsd:complexType>
<xsd:attribute ref = "date" use = "required"/>
</xsd:complexType>
</xsd:element>
I know this is wrong, but this might give you an idea of what I'm trying to do. For the record, this project is being written in C# and C# Express is what is complaining at me about this and my previous version which simply had an element with just a type, min occurance, and max occurance but no name inside of the sequence tags.
I don't know if anyone here has come across this, but if they have, an idea of how this can be defined would be appreciated.