Re: [PHP] xpath and SimpleXML

2004-10-07 Thread Dave
Hi I can see your logic.. however the input for my xpath query is an object (I can do a sprintf on the input $var1, which I may need also). $result = $anything->xpath("//ROW[$var1 > $var2]"); I've tried to ereg_replace the quotation marks out of the object... but no go. So the question is how

Re: [PHP] xpath and SimpleXML

2004-10-07 Thread Matthew Sims
> So, using xpath, I have constructed the following function. The problem is > the quotes "" around the number. xpath is treating it as a string, I > believe. Would sprintf() work for this? Something like: $num = sprintf("%d", $xpathNum); I haven't tested this. -- --Matthew Sims --

[PHP] xpath and SimpleXML

2004-10-07 Thread Dave
Hi I'm using PHP5.0.2 and SimpleXML to build a systems monitoring application. I'm pulling data from Win server perfmon logs, using MS Log Parser to output into XML, then a PHP command line script (run every x minutes) using SimpleXML to parse, and then to make decisions. The issue I am having