in reply to How to Check if XML Well Formed

Well, it throws an exception. If you don't catch that exception, it dies, sure. But to catch exceptions, put it inside an eval-block. Then you can do what you want once you notice that exception.

Replies are listed 'Best First'.
Re^2: How to Check if XML Well Formed
by Photius (Sexton) on Jan 02, 2008 at 22:30 UTC
    Thanks! Duh.