tags:

views:

163

answers:

1

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.

A: 

when you create xmldocument object,you can set namespace uri and prefix by CreateDefaultAttribute() after that,you can set some attributes by XmlElement.SetAttribute() but the method cannot set some attributes related to some protocol or namespace

Edwin Tai