Saturday, June 07, 2003

Your Life is a Jar, Mayonnaise or Pickle

McGee's Musings comments on Fill Life from Escapable Logic "I've heard this one before, but that doesn't make it any less pertinent".

I've heard it before to...

  • instead of a mayonnaise jar it was a pickle jar
  • instead of golf balls it started with rocks
  • instead of sand it followed with pebbles
  • instead of beer it finished with sand
  • instead of Fill Life it was titled Time Management The Pickle Jar Theory

same theme, same message, always pertinent.


12:59:03 PM  images/woodsItemLink.gif  comment [] 

Explore XPath, No Code Required

XPath Explorer. Alex Chaffee's XPath Explorer
XPath Explorer (XPE) is a Java GUI application that lets you interactively experiment with XPath. Basically, you type in a URL (to an XML or HTML document) and an XPath expression, and it displays the elements or attributes from that document which match that expression. It also displays the value (string, number, or boolean) of the expression, and displays the entire XML tree of the original document, but with the matching nodes highlighted in bold. This makes it easy to play with and debug your XPath expresions.

Also, there is a reverse gear! Now when you click on a node, XPE will generate an XPath that uniquely identifies that node. If you double-click (or click the "Use This Path" button) it will close the circle and select all nodes that match that XPath -- should be the one you clicked on, huh? The generation algorithm basically walks up the tree until it finds the document root, or a node with an id tag (since ids are supposed to be unique in XML), then walks back down, building the path by position
[Sanjay's Coding Tips]

12:19:10 PM  images/woodsItemLink.gif  comment []  - See Also:  Java | XML