如何以编程方式创建 xsd 文档?例子:
<xs:annotation>
<xs:documentation>Documentation</xs:documentation>
</xs:annotation>
我用了:
XmlSchemaElement element = new XmlSchemaElement();
XmlSchemaAnnotation annotation = new XmlSchemaAnnotation();
XmlSchemaDocumentation doc = new XmlSchemaDocumentation();
//doc.Value = "Documentation"; ??
annotation.Items.Add(doc);
element.Annotation = annotation;
但是如何设置文档价值?XmlSchemaDocumentation 类型中没有这样的属性。谢谢!