get_SchemaInfo()

XmlReader::get_SchemaInfo() method

Returns the schema information that has been assigned to the current node as a result of schema validation.

virtual SharedPtr<Schema::IXmlSchemaInfo> System::Xml::XmlReader::get_SchemaInfo()

Return Value

An IXmlSchemaInfo object containing the schema information for the current node. Schema information can be set on elements, attributes, or on text nodes with a non-null XmlReader::get_ValueType value. If the current node is not one of the above node types, or if the XmlReader instance does not report schema information, this method returns nullptr. If this method is called from an XmlTextReader or an XmlValidatingReader object, this method always returns nullptr. These XmlReader implementations do not expose schema information through the get_SchemaInfo method.

See Also