in reply to XPath crashing

I don't have access to a system with XML::XPath installed as of this writing, when I get it I will update if necessary, but I believe the problem is that your xpath query might contain a syntax error. If $CONFIG{teamid} is a string, it needs to be in single quotes for a string equals predicate (the part in brackets). XML::XPath will sometimes fail spectacularly when given a bad query.

If $CONFIG{teamid} is a string the query should look like this:
$usernodeset = $xpu->find("/users/user[teamid='$CONFIG{teamid}']");

Replies are listed 'Best First'.
Re^2: XPath crashing
by adrianxw (Acolyte) on Feb 05, 2007 at 20:49 UTC
    The teamid value is an integer. Reading the XPath spec, it should not be necessary to quote it. I can try of course!