Is it possible to write a custom serializer parser for BaseX?