[jdom-interest] Entity value lookup based on name?

Jason Long jason at supernovasoftware.com
Thu Feb 27 10:36:48 PST 2003


I solved it by adding the entities with jdom and then writing it out to a
file and reading it back again.  This makes both documents entities expanded
and since they are using the samed dtd everything matches up.  Is there a
way to do the expansion in memory?

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering

-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of New, Cecil (GEAE)
Sent: Thursday, February 27, 2003 11:55 AM
To: jdom-interest at jdom.org
Subject: RE: [jdom-interest] Entity value lookup based on name?


We are solving a similar problem by have a second xml contain all the
"global"
mappings.  Then we have multiple JDOM's in memory (actually 4 altogether)
and
all are very small.

then of course it is our business logic that ties it altogether.

-----Original Message-----
From: Gordon Tyler [mailto:gordon.tyler at sitraka.com]
Sent: Wednesday, February 26, 2003 12:48 PM
To: JDOM
Subject: Re: [jdom-interest] Entity value lookup based on name?


Jason Long wrote:
> Maybe what I am trying to do is weird.  My problem is that I am getting
data
> from a legacy system that has no unique identifier for items in an
> inventory.  Their uniqueness is determined by a combination of 8 fields.
> The client generates this data and upload it where I use jdom to group
like
> items, calculate totals,...  Some of the fields are abbreviations that
need
> to be expanded for display.  When I process the file I am adding these

I've read a number of your messages about this problem and I really
think Entities are _not_ the solution. You're trying hammer a screw with
jigsaw... it's not going to work without a lot of blood and missing fingers.

The simplest solution is to have a separate process that expands the
abbreviation in the attribute into the full text based on some mapping
file. You're not going get this to magically happen through JDOM, it's
going to have to be a manual process.

Ciao,
Gordon

--
Gordon Tyler
Software Developer, R&D
Sitraka (now part of Quest Software)
"Performance is Mission Critical"

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.co
m
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com





More information about the jdom-interest mailing list