I wrote some examples to demonstrate my basic teaching style.
This first example is what I envision for the first chapter of the course book, which will be teaching XML. This would be the first page of that chapter, and you can see that it makes no assumptions about the student's prior experience. The topic is related to a real-world concept before introducing anything technical:
My second example would be much later in the book, demonstrating my style of explaining the concept clearly before diving into the code. This would be toward the end of the chapter. Obviously by this point in the course, the student will be familiar with Java, so the code parts will be very simple to follow and relate back to the concept being taught: