简体   繁体   中英

XmlSchema has no elements (C#)

I load an XmlSchema from a file and it has other schema in its schema.Includes.

For this included XmlSchema, the Elements and SchemaTypes properties are in length 0. However they should contain some element/types according to the actual schema. This included XmlSchema does have the elements and complex types in its Items property, so why not in the normal properties? The primary schema has everything ok.

创建xmldocument对象时,可以通过CreateDefaultAttribute()设置名称空间uri和前缀,然后可以通过XmlElement.SetAttribute()设置一些属性,但是该方法无法设置与某些协议或名称空间相关的某些属性

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM