This is like you want to use an English grammar to build an English novel on it. It is NOT exactly accurate analogy, but you've got my idea anyway. You probably can make an example from it, and that is probably not very hard, but why to waste time on it, IMHO. You are welcome to try, and prove I'm totally wrong. I would be more than happy to accept it.
Joined: Jan 15, 2002
May be I did not explain well. I am building a JTree from the DOM and the objective is to strip out all Text elemments that the parser see as being the xml file elements. Example : <xml ..> <test> <my_real_element_one> There is no element betwee this one and the root </my_real_element_one> </test> </xml> Hope this makes it clear !
Joined: Nov 14, 2000
Sorry! The question does not make a lot of sense to me. It looks like a HW assignment. JTree does not grow naturally like most trees in the rain forest. JTree is built by your own code, you can put or choose not to put anything on it. [ November 12, 2002: Message edited by: Roseanne Zhang ]