ValidateElement()

XmlSchemaValidator::ValidateElement(const String&, const String&, const SharedPtr<XmlSchemaInfo>&) method

Validates the element in the current context.

void System::Xml::Schema::XmlSchemaValidator::ValidateElement(const String &localName, const String &namespaceUri, const SharedPtr<XmlSchemaInfo> &schemaInfo)

Arguments

ParameterTypeDescription
localNameconst String&The local name of the element to validate.
namespaceUriconst String&The namespace URI of the element to validate.
schemaInfoconst SharedPtr<XmlSchemaInfo>&An XmlSchemaInfo object whose properties are set on successful validation of the element’s name. This parameter can be nullptr.

XmlSchemaValidator::ValidateElement(const String&, const String&, const SharedPtr<XmlSchemaInfo>&, const String&, const String&, const String&, const String&) method

Validates the element in the current context with the xsi:Type, xsi:Nil, xsi:SchemaLocation, and xsi:NoNamespaceSchemaLocation attribute values specified.

void System::Xml::Schema::XmlSchemaValidator::ValidateElement(const String &localName, const String &namespaceUri, const SharedPtr<XmlSchemaInfo> &schemaInfo, const String &xsiType, const String &xsiNil, const String &xsiSchemaLocation, const String &xsiNoNamespaceSchemaLocation)

Arguments

ParameterTypeDescription
localNameconst String&The local name of the element to validate.
namespaceUriconst String&The namespace URI of the element to validate.
schemaInfoconst SharedPtr<XmlSchemaInfo>&An XmlSchemaInfo object whose properties are set on successful validation of the element’s name. This parameter can be nullptr.
xsiTypeconst String&The xsi:Type attribute value of the element. This parameter can be nullptr.
xsiNilconst String&The xsi:Nil attribute value of the element. This parameter can be nullptr.
xsiSchemaLocationconst String&The xsi:SchemaLocation attribute value of the element. This parameter can be nullptr.
xsiNoNamespaceSchemaLocationconst String&The xsi:NoNamespaceSchemaLocation attribute value of the element. This parameter can be nullptr.

See Also