I want a fully qualified path name: foo/bar/etc
Max, your interpretation of what "fully qualified" means is not correct.
Qualified means that a namespace and the element name are included in an element's start-tag and end-tag. Below is an
example. "citigroup" is the name of the namespace. "transaction" is the element name. Both of them in the start-tag and end-tag is fully qualified.
The element name in the start-tag below is not fully qualified.
Aside, SAX programming is a bit more difficult that a classroom "Hello Word" assignment. What you are seeking to do is relatively easy once you gain some knowledge of how SAX-compliant parsers actually work and how to write code that communicates with the parser's callbacks.
As mentioned, it might help if you studied up a little bit more on SAX and XML. Providing you with code would be hurting you rather than helping you. Good luck!