XML Is a Godsend

  • user warning: Table 'nolan.comments' doesn't exist query: SELECT COUNT(*) FROM comments WHERE nid = 11 AND status = 0 in /home/sneakin/web/nolan.eakins.net/includes/database.mysql.inc on line 120.
  • user warning: Table 'nolan.comments' doesn't exist query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.picture, u.data, c.score, c.users, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 11 AND c.status = 0 GROUP BY c.cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, u.picture, c.homepage, u.uid, u.name, u.picture, u.data, c.score, c.users, c.thread, c.status ORDER BY c.thread DESC LIMIT 0, 50 in /home/sneakin/web/nolan.eakins.net/includes/database.mysql.inc on line 120.
|

I was working on my drag and drop prototype for MyPasswordSafe a couple of nights ago. I had it so items could be dragged and dropped, but still needed to do the same thing with groups. Drag and drop works by storing the data in a byte array, and for awhile I thought I would need to create my own binary format to hold a tree structure. Right before I started to take a crack at groups, the idea to use XML popped in my head. XML to the rescue! By nature it's hierarchical and fit the problem extremely well. XML is a tree. I'm trying to drag and drop a tree. Perfect!

I have the prototype done now, and everything works. I now need to come up with an abstract MVC. That and a undo/redo system, which may go hand in hand a bit. After drag and drop, undo/redo is the biggest new feature I have scheduled for MyPasswordSafe. It's gonna require some thinking.

Ad's by Google