I'm having trouble with some code that works in 7.8.700:
int main(int argc, array argv) { string xml = "<?xml version=\"1.0\"?><foo><bar> <gazonk/></bar></foo>"; object r = Parser.XML.NSTree.parse_input(xml); r[1]->walk_inorder(lambda(mixed n){ werror("n: %O\n", n); });
return 0; }
yields:
n: Parser.XML.NSTree.NSNode(TEXT) Cannot index float with "walk_inorder". /usr/local/pike/7.9.11/lib/modules/Parser.pmod/XML.pmod/Tree.pmod:470:
Parser.XML.NSTree.NSNode(TEXT)->walk_inorder(/main()->__lambda_65675_0_lin e_5) /usr/local/pike/7.9.11/lib/modules/Parser.pmod/XML.pmod/Tree.pmod:465:
Parser.XML.NSTree.NSNode(ELEMENT,"bar",0)->walk_inorder(@0=/main()->__lamb da_65675_0_line_5) /usr/local/pike/7.9.11/lib/modules/Parser.pmod/XML.pmod/Tree.pmod:465: Parser.XML.NSTree.NSNode(ELEMENT,"foo",0)->walk_inorder(@0) test.pike:5: /main()->main(1,({"/home/hww3/test.pike"}))
I've noticed similar problems with the other walk functions, as well.
Bill
pike-devel@lists.lysator.liu.se