Export (0) Print
Expand All

Extensions.GetSchemaInfo Method

Gets the post-schema-validation infoset (PSVI) of a validated node.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member GetSchemaInfo(XAttribute) Gets the post-schema-validation infoset (PSVI) of a validated attribute.
Public method Static member GetSchemaInfo(XElement) Gets the post-schema-validation infoset (PSVI) of a validated element.
Top

After you have validated an XDocument, you can retrieve the post-schema-validation infoset for an XElement or XAttribute that is contained in the document.

After retrieving the IXmlSchemaInfo object, you can use the SchemaAttribute or SchemaElement properties to get a partial validation type (XmlSchemaElement or XmlSchemaAttribute). You can use the partial validation types to validate an attribute or a sub-tree.

Show:
© 2014 Microsoft