Stopping an XML parser

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Thu Jul 10, 2003 6:23 am

As a general tip, reinventing the wheel is usually a bad idea. There are probably a dozen PHP XML parsers out there, so I can't fathom why you'd write your own.

Anyway, the answer to your question depends largely on how you're implementing the parser. But if it's running in any sort of loop, and I can't imagine how else you'd do it, you can use the break command to exit the current loop and continue on with the rest of the script.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests