Metadata parser (removed xml bindings - more flexible parser)