alternative XML methods for murgaLua
|
Author |
Message |
znarf
Junior Member
 
Posts: 34
Group: Registered
Joined: Jun 2007
Status:
Offline
Reputation: 0
|
alternative XML methods for murgaLua
As written in the documentation, murgaLua's XML read/write abilities still are somehow provisional. Personally I especially miss the feature to write arbitrary XML data back to file in the same structure as read before.
Thus I've written a little Lua module which is loosely inspired by murgaLua's current approach to read XML data into normal Lua tables, but generally behaves more gently and consistently than before.
You find my current implementation at http://www.viremo.de/index.php/luaxml . I think it's now mature enough to completely replace murgaLua's current XML functionality.
If there is any interest to include these functions directly to murgaLua, I'd gladly do any necessary adaptations. If not, I'm fine with it as well, LuaXML can be easily loaded to murgaLua at runtime using Lua's normal package features.
Regards,
Gerald
|
|
07-04-2007 02:42 AM |
|
 |
JohnMurga
Administrator
      
Posts: 381
Group: Administrators
Joined: Apr 2007
Status:
Offline
Reputation: 2
|
RE: alternative XML methods for murgaLua
Interesting :-)
I have actually been working on the XML API over the last few days as it happens ...
Find and saveAsImported methods are in there, but I am hoping I can learn something from what you've done.
I'll have a play with luaXml this weekend, thanks !
External drag-and-drop is also on my list ... In case you thought I forgot.
Cheers
John Murga
This post was last modified: 07-04-2007 02:52 AM by JohnMurga.
|
|
07-04-2007 02:51 AM |
|
 |
znarf
Junior Member
 
Posts: 34
Group: Registered
Joined: Jun 2007
Status:
Offline
Reputation: 0
|
RE: alternative XML methods for murgaLua
That's very good news :-) !
I'm looking forward to your solutions for drag and drop as well as for the XML API. If you find some lines of my code useful for your solution, just feel free to grab them. I'm happily donating to this great project!
Regards,
Gerald
|
|
07-04-2007 04:56 AM |
|
 |
znarf
Junior Member
 
Posts: 34
Group: Registered
Joined: Jun 2007
Status:
Offline
Reputation: 0
|
RE: alternative XML methods for murgaLua
I finally figured out how to support also Lua's object-oriented syntax. I've added this now to LuaXML. If you are interested, you may grab an updated package at the same place http://www.viremo.de/index.php/luaxml .
Regards,
Gerald
|
|
07-20-2007 05:01 PM |
|
 |