------解决方案--------------------
The first character of an ID value must be a letter, '_', or ':' http://xmlwriter.net/xml_guide/attlist_declaration.shtml
------解决方案--------------------
------解决方案-------------------- 楼上的正确 你讲代码改成
C# code
<?xml version="1.0" encoding="gb2312" ?>
<!DOCTYPE students [
<!ELEMENT students (student*) >
<!ELEMENT student (sex)>
<!ATTLIST student name CDATA #REQUIRED>
<!ATTLIST student id ID #REQUIRED>
<!ELEMENT sex (#PCDATA)>
]>
<students>
<student name="熊俊" id="_23" >
<sex>男</sex>
</student>
<student name="萧蔷" id="_24" >
<sex>女</sex>
</student>
</students>
------解决方案--------------------