SAX find closing Tag

HaxirUnited

New Member
Is there any feasible using the default handler class to find a corresponding XML tag? for example...\[code\]<Object class="my class"> <Property> <Value>1</Value> </Property></Object><Object class="my next class"> <Property> <Value>1</Value> </Property></Object>\[/code\]I want to use the startElement() and endElement() methods but can't figure out it out at a high level. All I can think to do is use a counter, wanted to see if anyone has ever heard of an easier method. I want to split these two Object classes into 2 separate strings based on when they start and close. Any advice?
 
Back
Top