A system and method for controlling access to data within a hierarchically organized
document, such as an XML document. Elements may have their access rights specified,
for example as a variable in an XML tag. If not specified within an element of
the document, access rights are inherited from its nearest ancestor. Specified
access rights may refer to a collection of entitlement expressions, which describe
with arbitrarily fine granularity which users and user types may access the data.