[wpkg-users] [Bug 186] New: Hit and run ideas...
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Mon Jun 14 23:50:44 CEST 2010
http://bugzilla.wpkg.org/show_bug.cgi?id=186
Summary: Hit and run ideas...
Product: WPKG
Version: other
Platform: PC
URL: http://www.thomasfrank.se/xml_to_json.html
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P2
Component: wpkg.js
AssignedTo: mangoo at wpkg.org
ReportedBy: k.e.jones at brighton.ac.uk
QAContact: wpkg-users at lists.wpkg.org
Created attachment 166
--> http://bugzilla.wpkg.org/attachment.cgi?id=166
A simple three line example
Hi,
Sorry, as the title suggests this is a hit and run idea but it looked quite
interesting. Sorry for not being so public but some family medical issues
cropped up so I have other things to attend to... anyway...
I ran into this;
http://www.thomasfrank.se/xml_to_json.html
It's basicly a very short (and cryptic) parser for xml that turns any xml into
a JSON'ised/able object based on the element and attribute structure.
I just thought it was worth mentioning because it might be rather cool for
WPKG.js to not need functions such as getPackageName(packageNode) and just
parse the xml directly to an object or collection of objects i.e. be able to
use packageNode.Name in the code becuase you're working with a real object.
It'll need some thinking (and possibly some adapting) but the code attached
shows how simple it is to use! It's seems rather groovy and might be a cool way
to make the jscript really intuitive and ultra-maintainable.
Have fun folks,
Keith
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list