A basic xng encoding library