Changes

Jump to navigation Jump to search
437 bytes added ,  10:39, 17 October 2020
section about xml node at lua end
Have fun finding more ways to do interesting things with Lua and xml!
 
--[[User:Thomas|Thomas]] 09:35, 28 March 2013 (CET)
 
== The XML node at Lua end ==
 
In the example above the XML node <tt>id</tt> (<tt>#1</tt>) is passed to Lua by {{cmd|xmlfunction}} command, being transformed from node string <tt>id</tt> (e.g. <tt>xml:name::6</tt>) to Lua table representing the xml elements in the xml tree. To get this table at Lua end <tt>lxml.getid()</tt> function is used (e.g. <tt>xml.text(lxml.getid("#1"), "./")</tt>). There is no performance gain in doing so.
[[Category:XML]]
[[Category:Programming and Databases]]
138

edits

Navigation menu