matt at xmlglobal.com
Mon Mar 12 20:25:34 PST 2001
Cool idea -- have you considered writing your code to BSF so that the
bridge is available to other script languages? I have been using JDOM
from within an app using BSF for a while, but I am just using the
regular JDOM api (which is awesome, don't get me wrong....if you are a
BSF == Bean Scripting Framework
Wesley Biggs wrote:
> Hi all,
> I've been working on a bridge piece that allows JDOM XML trees to be
> >From the README:
> What is it?
> - A lightweight bridge between the JDOM XML tree representation and
> just like the DOM in HTML.
> - You need jdom.jar from the JDOM site, http://www.jdom.org/, and js.jar
> the Rhino project, http://www.mozilla.org/rhino/. Download these two
> JAR files
> and place them in this directory.
> // Display info about the second employee
> out.println( roster.employee.firstName )
> out.println( roster.employee.lastName )
> out.println( roster.employee['@department'] )
> // Display raw XML for the first employee (could leave off the  for the
> same result)
> out.println( roster.employee() )
> There's quite a bit more functionality in there, but that gives you a
> general idea of the usage, built to match the way the HTML DOM is accessed
> This is a test release to solicit some feedback. I have tentatively placed
> this code (what there is of it -- it's meant to be very lightweight) in the
> org.jdom.contrib.js package.
> If you're interested in trying it out, check out the attached ZIP file. All
> comments appreciated.
More information about the jdom-interest