Depends how you designed your classes that the XML is digested into ;-) If you're looking for specific kinds of queries, then the class(es) should be geared to supporting those [aggregation, composition and keying constructs associated with the semantics of the data need to be reflected in the digested output].
If you don't do that, you might as well use a DOMParser and XPath / XQuery. -Rahul On 4/21/05, Henrique, Manuel <[EMAIL PROTECTED]> wrote: > Hello all, > > Here I come again with my digester :)) > > So, I have my xml file, I have created my digester and all the needed > classes for my xml tags, and do a digester.parse(). Still here all is ok. > > I start Tomcat 5.0 and look to the log file. All seems ok, my xml file is > consumed, all the classes are instancied etc...etc... > > My question: > > If I have an xml file like this > > <computer> > <brand name="compcool"> > <model>faster_than_all</model> > <serialnumber>1248965<serialnumber> > </brand> > <brand name="pcassociated"> > <model>very_expensive</model> > <serialnumber>34564<serialnumber> > </brand> > <brand name="pcassociated"> > <model>expensive_too</model> > <serialnumber>9999999999<serialnumber> > </brand> > </computer> > > how can I get after in my Java code the serial number of the model "expen > sive_too" for example??? How can I be sure to get the good data as I have > two identical brand names? > > Thank you for your help. > > Regards, > > Manuel > > ps: I know that for someones the question seems to be very basic but > remember when you were beginner and be kind to me > > This e-mail and any attachment is for authorised use by the intended > recipient(s) only. It may contain proprietary material, confidential > information and/or be subject to legal privilege. It should not be copied, > disclosed to, retained or used by, any other party. If you are not an > intended recipient then please promptly delete this e-mail and any attachment > and all copies and inform the sender. Thank you. > > --------------------------------------------------------------------- > 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]
