Thx David; I'll look into it. Mark
-----Original Message----- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 1:39 PM To: Struts Users Mailing List Subject: RE: XML Parsing Dilemma --- Mark Galbreath <[EMAIL PROTECTED]> wrote: > This is my real dilemma. I think an XML parsing engine should be able > to take a validated XML file and output: > > tag_name = tag_value > > and understand where one record stops and another record begins. For > crying out loud, I can write the thing myself in a few hours, but I > want to remain > open-source standard. Is there an XML parser that simply reads the tags > and > puts them into a collection indexed by record? I'm not sure if this is exactly what you're looking for but with Digester you can setup a call-method-rule with parameters. So, if you have: <entry key="k" value="v"/> you could setup Digester to call the put() method on a map passing in k and v. You can also do this with nested elements under <entry> instead of attributes. David > > Mark > > -----Original Message----- > From: Greg Reddin [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 12:07 PM > To: Struts Users Mailing List > Subject: Re: XML Parsing Dilemma > > > > The front-runners on my list is Castor and JDOM. Any (related) > > suggestions are greatly appreciated. > > I've used both of these, though not JDOM enough to comment on it. My > favorite XML tool right now is Digester. To me, it has a smaller > development footprint than Castor and gives you at least the same XML > parsing capability. > > I used both Castor and Digester to parse configuration files. To use > Castor I had to write a schema and the castor "client" code, which was > pretty big and I had to put up with the objects it generated. For > Digester I wrote a RuleSet class, some value objects and a very small > amount of "client" code. I didn't write (but should've written) a DTD. > > Greg > > > > DISCLAIMER: > This email message is for the sole use of the intended recipient(s) > and may contain confidential and privileged information. Any > unauthorized review, > use, disclosure or distribution is prohibited. If you are not the > intended > recipient, please contact the sender by reply email and destroy all > copies > of the original message and attachments. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

