xsd.NamespaceConstraint

The NamespaceConstraint class provides for validation of attribute and element items that are selected according to the specified constraint.

class xsd.NamespaceConstraint

Attributes

xsd.NamespaceConstraint.disallowed_names

A set, each of whose members is either an xs:QName value, or the keyword defined, or the keyword sibling. Required.

xsd.NamespaceConstraint.namespaces

A set, each of whose members is either an xs:anyURI value or the distinguished value absent. Required.

xsd.NamespaceConstraint.variety

One of {any, enumeration, not}. Required.

Special methods

__eq__, __ge__, __gt__, __le__, __lt__, __ne__