The Artima Developer Community
Sponsored Link

Java Buzz Forum
XQuery, XmlPull, and 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
Wolf Paulus

Posts: 692
Nickname: wolfpaulus
Registered: Jan, 2004

Wolf Paulus is an experienced software developer focusing on Java, XML, Mac OS X, wireless/mobile ..
XQuery, XmlPull, and XPath Posted: Jan 17, 2004 3:37 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Wolf Paulus.
Original Post: XQuery, XmlPull, and XPath
Feed Title: Wolf's Web Journal
Feed URL: http://wolfpaulus.com/feed/
Feed Description: Journal - dedicated to excellence, and motivated by enthusiasm to trying new things
Latest Java Buzz Posts
Latest Java Buzz Posts by Wolf Paulus
Latest Posts From Wolf's Web Journal

Advertisement
XQuery is getting a lot of attention lately and the CarlsbadCubes' Forum/Mailinglist became a gathering place for SAX and xmlpull parsing enthusiasts. I feel kind-of left behind since I'm still wondering who in his right mind likes to write XQuery statements and SAX parsing code?
It's almost like last year's discussion .. you cannot be a real Java coder if you are using an IDE .. real men use vi.
Well, that wouldn't be me. Anyway, I'm still using JDOM and Jaxen wherever I feel appropriate and convenient of course. For instance, while working on Franklin, the upcoming visual XUL-Editor for Swixml, I needed a list of all the ActionCommands that have been assigned to toolbar buttons.
Franklin's core will be used for Swixml, Thinlet, and some flavor of Flash-XUL, still Franklin's UI will be created using Swixml and therefore the following XPATH returned exactly what I needed:

//tabbedpane[@id='tp_toolbarpane']/toolbar/button/@ActionCommand/text()

Since the GUI descriptor is already a JDOM document, using Jaxen for XPath processing solved the problem with 3 lines of code.
If you are not an XPATH expert have a look here: http://www.w3schools.com/xpath/ and use Alex Chaffee's XPath Explorer to test your XPATH expressions.

Read: XQuery, XmlPull, and XPath

Topic: Blogging from 10,000 miles away Previous Topic   Next Topic Topic: ICQ support coming

Sponsored Links



Google
  Web Artima.com   

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