System::Xml::Schema::XmlSchemaValidator::ValidateAttribute method

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

Validates the attribute name, namespace URI, and value in the current element context.

SharedPtr<Object> System::Xml::Schema::XmlSchemaValidator::ValidateAttribute(const String &localName, const String &namespaceUri, const String &attributeValue, const SharedPtr<XmlSchemaInfo> &schemaInfo)
ParameterTypeDescription
localNameconst String&The local name of the attribute to validate.
namespaceUriconst String&The namespace URI of the attribute to validate.
attributeValueconst String&The value of the attribute to validate.
schemaInfoconst SharedPtr<XmlSchemaInfo>&An XmlSchemaInfo object whose properties are set on successful validation of the attribute. This parameter can be nullptr.

ReturnValue

The validated attribute’s value.

See Also

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

Validates the attribute name, namespace URI, and value in the current element context.

SharedPtr<Object> System::Xml::Schema::XmlSchemaValidator::ValidateAttribute(const String &localName, const String &namespaceUri, XmlValueGetter attributeValue, const SharedPtr<XmlSchemaInfo> &schemaInfo)
ParameterTypeDescription
localNameconst String&The local name of the attribute to validate.
namespaceUriconst String&The namespace URI of the attribute to validate.
attributeValueXmlValueGetterAn XmlValueGetter callback used to pass the attribute’s value as a type compatible with the XML Schema Definition Language (XSD) type of the attribute.
schemaInfoconst SharedPtr<XmlSchemaInfo>&An XmlSchemaInfo object whose properties are set on successful validation of the attribute. This parameter and can be nullptr.

ReturnValue

The validated attribute’s value.

See Also