The Java Tutorials have been written for JDK 8. Examples and practices described in this page don't take advantage of improvements introduced in later releases.
A set of JAXP sample programs is provided in the JAXP download bundle that is available from Project JAXP. After you install JAXP, the sample programs are found in the directory INSTALL_DIR/jaxp-version/samples.
The sample programs are intended to be run on the Java Platform, Standard Edition (Java SE) version 6 or later.