Bob: Thanks for your reply The following expressions work : /Configuration /Configuration/hostname /Configuration/hostname/attrlist /Configuration/hostname/attrlist/hostname However it breaks when I try to do /Configuration/hostname/attrlist/hostname[. = 'CE-A'] Am not sure what's the problem.Can you please help out. -vibhu -----Original Message----- From: bob mcwhirter [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 6:08 PM To: Vibhu Pratap Cc: [EMAIL PROTECTED] Subject: Re: [Jaxen] Problem !!
That looks like it should work. Start testing the path piece-wise and figure out when exactly it breaks. Does /Configuration work? /Configuration/hostname ? /Configuration/hostname/attrlist/hostname /Configuration/hostname/attrlist/hostname[. = 'CE-A'] etc.. Try to character exactly what the scenario that is causing the failure. Then, if possibly, submit a test-case suitable for inclusion in our current test harness. -bob On Mon, 30 Sep 2002, Vibhu Pratap wrote: > Hi All: > I am running into a problem with an XML query > using Jaxen. > I have a following XML file : > > <?xml version="1.0" encoding="UTF-8"?> > <Configuration> > <hostname> > <val>2</val> > <attrlist> > <hostname>CE-A</hostname> > </attrlist> > </hostname> > <hostname> > <val>1</val> > <attrlist> > <hostname>CE-B</hostname> > </attrlist> > </hostname> > </Configuration> > > And I am trying to evaluvate following XPath expression : > > /Configuration/hostname/attrlist/hostname[. = 'CE-A']/../../val > > which runs fine in XML Spy but does not return any value when I use > Jaxen. > Any help will be appreciated. > -vibhu > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > -- Bob McWhirter [EMAIL PROTECTED] The Werken Company http://werken.com/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest