XML Schema Question

liunx

Guest
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. <br /><br />I currently have it defined as such, which I know is wrong.<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br /><xsd:element name = "comment" type="xsd:string"><br />    <xsd:complexType><br />        <xsd:attribute ref = "date" use = "required"/><br />    </xsd:complexType><br /></xsd:element><br /><!--c2--></div><!--ec2--><br /><br />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.<br /><br />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.
</div>
 
Top