This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes after endDocument vector gets emptied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "after endDocument vector gets emptied" Watch "after endDocument vector gets emptied" New topic

after endDocument vector gets emptied

Pinda Ros
Ranch Hand

Joined: Apr 14, 2003
Posts: 65
Hello ,

I have built an xml parser that uses a vector to store the values of each tag.

while the class is parsing i can see the vector getting bigger and filling up with values.

However i noticed that after endDocument everything in the vector is lost.
That is i have an empty vector.

Any suggestions why this might be happening?

thank you in advance.


NanoAgent is an Artificial intelligence RoBot of microscopic proportions built by means of nanotechnology
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Is these some sample code that you want to share with us, please/
I am a little confused with the description that you provided....

- m

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link:
subject: after endDocument vector gets emptied
It's not a secret anymore!