Simple XML-like serializer