Added a function to create again the kind of xml eXist serializes to json natively

Added a convenience function to be able to convert into an xml format that can be serialized into xml natively by eXist's declare option exist:serialize "method=json media-type=application/json";

This may need some json helper attributes for more complex serialization.