[jdom-interest] fetching elements text
John Cavacas
john.cav at sapiens.com
Wed Apr 30 15:04:16 PDT 2003
I'm perhaps being lazy, but I've been using Jdom with great success for a
couple of weeks now. Where's this XPath interface? It could really use it in
a couple of places.
Thanks,
John
> -----Original Message-----
> From: Jason Hunter [mailto:jhunter at servlets.com]
> Sent: Wednesday, April 30, 2003 5:50 PM
> To: Scott Purcell
> Cc: jdom-interest at jdom.org
> Subject: Re: [jdom-interest] fetching elements text
>
> If convenience is what you desire, use the XPath interface. Makes it
> trivial to pull out portions of a document.
>
> For more doc information, see the docs page on the site. There's no set
> of samples, but there's lots of articles and slides. Also, you'll find
> some samples in the "samples" dir with the distribution.
>
> -jh-
>
> Scott Purcell wrote:
> >
> > I have just created a JDOM object and it is in memory. I have the need
> to somehow pick out some data:
> >
> > EG: lets say that the below document is in memory:(This is just piece
> of the data.)
> > And I need to pull out the psd/height, psd/width? How could I do that
> using JDOM?
> >
> > I used to use SAX, but want to use JDOM. How could I accomplish this?
> Also, are there any great example sites that I can get more info from?
> >
> > Thank you
> > Scott K Purcell
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <imageInfo>
> > <psd width="281" height="281" copyright="" colorSpace="RGB">
> > <optimizationSettings>
> > <GIFFormat rolloverMasterPalette="false" autoReduce="false"
> interlaced="false" transparency="false" reductionAlgorithm="selective"
> webShiftPercent="0" ditherPercent="100" ditherAlgorithm="diffusion"
> noMatteColor="false" matteColor="#FFFFFF" lossy="0" numColors="256" />
> > </optimizationSettings>
> > <variableSubstitutionCommands>
> > <setVariable data="data" trait="textcontent" category=""
> docRef="id('26')" varName="defaultTextVariable" />
> > </variableSubstitutionCommands>
> > <layer name="Percentage" type="text" top="99" left="190" right="243"
> bottom="148">
> > <textFlow>
> > <flow adobe-fractional-widths="false">
> > <p adobe-every-line-composer="false" adobe-burasagari="false" adobe-
> hanging-
> > more ........
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-
> interest/youraddr at yourhost.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-
> interest/youraddr at yourhost.com
This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited. If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.
More information about the jdom-interest
mailing list