CRA-509 New XML functions for multiple intervals