I embedded the type of thing you see above into a library, but it's not publicly releaseable.  You may want to just consider writing some good extension functions for it so that it's convenient, but unfortunately I know of no libraries that use XML or annotations.