From 442bcedaeb50998eb88396fcfd8659ab0cb5817b Mon Sep 17 00:00:00 2001 From: d-led Date: Wed, 3 Oct 2012 13:28:37 +0200 Subject: [PATCH] update test --- Lua/lib/test.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lua/lib/test.lua b/Lua/lib/test.lua index 924ff9e..bfb6498 100644 --- a/Lua/lib/test.lua +++ b/Lua/lib/test.lua @@ -20,6 +20,7 @@ print(query1.type,pugi.xpath_node_set.type_sorted) print(query1.size,query2.size) n=query1.size for i=0,n-1 do - node=query1:get(i):node() - print(node.valid) + local node=query1:get(i):node() + local attribute=query1:get(i):attribute() + print(node.valid,attribute.valid) end \ No newline at end of file