1

In a loop, each time i need to parse a new xml and in xml i have to parse some specific nodes, if they has value then copy them to another file else keep going until the last xml, how to do it ?

0

1 Answer 1

1

The essence of Sax is that you don't own the flow of control: when you say "in a loop", you are hinting that you want the flow of control. With Sax, the parser calls you when it's ready to do so. If you want to be in control, try using a pull parser (Stax, for example Woodstox).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.