This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This code is pretty difficult to understand... that setProperty method is impossible.
For example, if the method starts with "add", what ever happens? As far as I can tell, nothing.
Joined: Mar 14, 2009
I apologize. I did not see the XML forum.
The program is an example from a book. I thought the class was responsible for putting elements from the XML on the stack. It has several more classes. I was under the impression that it works sense everything compiled. I was trying to find out if it would run but it starts by saying nothing is on the stack. I will continue working with it to see if I can figure out how it works.
I'll look for the XML forum I did not see it.
It's the one that starts with "XML"--the post has already been moved.
Let this be a reminder--just because something compiles doesn't mean it does what we want!
Author and all-around good cowpoke
Joined: Mar 22, 2000
The program is an example from a book.
If that is indeed a direct quote from the book, you should demand your money back. Not only does it have the errors various ranchers have pointed out, it is needlessly complicated for capture of SAX event data.