Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Hi I have an XML file that contains a file layout, say <fieldname> and <fieldsize> Lets say I do my parsing in a class called FileLayout and in my main() - in another program - I do, FileLayout fl = new FileLayout(); . . and then parse the file.. while parsing, I do The nameTable and sizeTable are Vectors and in FileLayout, I have a getFieldNames that return nameTable The problem is that unless I declare these two vectors static, the return statement returns null. Whats going wrong here ?
Hi, a small remark here that's probably not the solution to you original problem, but what the hell... In SAX a DefaultHandler doesn't garantee to read the characters between a start and end tag in one go. For example, if you've got '<moviename>The Terminator</moviename>', depending on the parser implementation, you can have one characters()-event giving you "The Terminator" but you can just as well have 6 character()-events that give you "Th", "e T", "erm", "in", "a", "tor". Bottom line: don't perform your string adding in the characters()event but just append it to a StringBuffer there and the process the content of the buffer in the endElement()-event. Just something I wanted to say, Raf The Angry Belgian