[jdom-interest] fetching elements text
Jason Hunter
jhunter at servlets.com
Wed Apr 30 14:49:59 PDT 2003
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@yourhost.com
More information about the jdom-interest
mailing list