The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/10/static/functions-xml.html Description:
From testing, it seems like PostgreSQL supports the syntax "IS NOT DOCUMENT" in addition to "IS DOCUMENT", similar to "IS NOT NULL", "IS NOT FALSE", etc, however this does not appear to be documented, only "IS DOCUMENT" is.