Important notice: these presentations were made as a supporting material for lectures and never were supposed to be used as a sole source for education. If you teach Java you can use them for your own lectures as a supporting material. If you are learning Java, these presentations may be a good brief overview and a start point. Based on them you can start to program in Java, but for deep expert knowledge you need much more.
XML 1.0 Formal Grammar (from W3 XML 1.0 Specs)
XPath 1.0 Formal Grammar and Reference (based on W3 Specs)