Improving encapsulation of microdata elements