commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dustin Whitney" <>
Subject JXPath setting values with predicates
Date Tue, 08 May 2007 22:36:19 GMT

    I like JXPath, but I'd like to make a change to the source, and I'm
hoping for some advice here.  When using the
JXPathContext.createPathAndSetValue() method on some Java beans, I get an
exception if something like:

/appQuestions[@detailGroup = 'Rental Reimbursement' and @detailName =

results in the predicate returning an null value.  But, using the same
createPathAndSetValue() method with that XPath when the predicate does not
result in null, works just fine.  I could easily turn my predicate into an
object if I were dumped into my AbstractFactory.createObject() method.  Can
anyone suggest what I might change to make that happen, or give a good
explanation as to why I should not do that?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message