The Artima Developer Community
Sponsored Link

Java Buzz Forum
I LOVE XPATH!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Russell Beattie

Posts: 727
Nickname: rbeattie
Registered: Aug, 2003

Russell Beattie is a Mobile Internet Developer
I LOVE XPATH! Posted: Sep 8, 2003 2:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Russell Beattie.
Original Post: I LOVE XPATH!
Feed Title: Russell Beattie Notebook
Feed URL: http://www.russellbeattie.com/notebook/rss.jsp?q=java,code,mobile
Feed Description: My online notebook with thoughts, comments, links and more.
Latest Java Buzz Posts
Latest Java Buzz Posts by Russell Beattie
Latest Posts From Russell Beattie Notebook

Advertisement

I just can't say how happy I am with XPath. It's such a phenomenal tool for working with XML. Now that it's integrated in everything from XSL through JDOM to XOM, you can use it whenever you need to grab bits of data out of your XML document, without having to loop and search and all that crud. It's just insanely useful.

For example, I was just trying to grok the massive WURFL XML document which lists every phone you can think of and the capabilities in a big hierarchy. It's pretty enormous and uses IDs as references so I couldn't get a good handle on what I was looking at. So I thought, "Ooh. This would a great time to mess with Lantern..." which is this Java-based interactive XPath expression tester that will let you mess with your XPath queries live. I had downloaded it the other day, but hadn't had a chance to play yet.

Lantern's a classic SWING app in that the UI is slow as death, but the queries run quick and are *really* quite informative. I especially liked the Tester which would return results instead highlighting - it was very comfortable, like an ISQL session which is how I learned SQL a decade ago. As I was playing, I started wanting to do things I hadn't done before using XPath, so I went back to the W3Schools XPath page and did a quick review. Very cool.

Anyways, weird thing about the current WURFL file. The one thing I wanted was the browser capabilities for each handset, and that stuff seems to be commented out! Weird... I guess I'm back to RegExing for well known User-Agents. No biggie.

-Russ

Comment

Read: I LOVE XPATH!

Topic: Siemens Screws Up Previous Topic   Next Topic Topic: One Sun Way?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use