An API for hierarchical tag/value structures