Note that some tags written in XML notation cannot be tested correctly; see the note for the function above.