Changes

Jump to navigation Jump to search
4 bytes added ,  10:41, 17 October 2020
m
minor improvement
== 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"), "./price")</tt>). There is no performance gain in doing so.
[[Category:XML]]
[[Category:Programming and Databases]]
138

edits

Navigation menu