Source: https://www.oracle.com/a/tech/docs/technical-resources/technicalreport-xmlquery.pdf