copy serializer code from chicken
adjust chicken's sxml-serializer to be an r7rs library