HasFeature()

XmlImplementation::HasFeature(const String&, const String&) method

Tests if the Document Object Model (DOM) implementation implements a specific feature.

bool System::Xml::XmlImplementation::HasFeature(const String &strFeature, const String &strVersion)

Arguments

ParameterTypeDescription
strFeatureconst String&The package name of the feature to test. This name is not case-sensitive.
strVersionconst String&This is the version number of the package name to test. If the version is not specified (nullptr), supporting any version of the feature causes the method to return true.

Return Value

true if the feature is implemented in the specified version; otherwise, false.

Remarks

The following table shows the combinations that cause HasFeature to return true.

strFeaturestrVersion
XML1.0
XML2.0

See Also