Re: [NTG-context] Ctx XML

2014-12-11 Thread Hans Hagen
On 12/11/2014 8:33 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, On Thu, 11 Dec 2014 02:24:24 +0100, Hans Hagen pra...@wxs.nl wrote: On 12/10/2014 11:08 PM, Lukáš Procházka wrote: I assume that you also want the content of elements, not just the attributes. Yes... Or how to

Re: [NTG-context] Ctx XML

2014-12-11 Thread Hans Hagen
On 12/11/2014 12:25 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: BTW: In your example, you are using the following enum of _type: instruction, comment, _element, -- REALLY UNDERSCORE here? root, of course, as you can have an attribute with name 'element' Hans --

[NTG-context] Ctx XML

2014-12-10 Thread Lukáš Procházka
Hello, I'm having problem using LuaXml library with Ctx, both using Lua ver. 5.2. LuaXml works fine with Lua standalone programs/scripts; but something weird occurs when used from within Ctx (e.g. a .xml file can be read successfully from standalone Lua with LuaXml lib; but the same code

Re: [NTG-context] Ctx XML

2014-12-10 Thread Hans Hagen
On 12/10/2014 11:08 PM, Lukáš Procházka wrote: Hello, I'm having problem using LuaXml library with Ctx, both using Lua ver. 5.2. LuaXml works fine with Lua standalone programs/scripts; but something weird occurs when used from within Ctx (e.g. a .xml file can be read successfully from

Re: [NTG-context] Ctx XML

2014-12-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Thu, 11 Dec 2014 02:24:24 +0100, Hans Hagen pra...@wxs.nl wrote: On 12/10/2014 11:08 PM, Lukáš Procházka wrote: I assume that you also want the content of elements, not just the attributes. Yes... Or how to achieve this in a best way under Ctx: XML file - Lua table/tree? It