commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valerio Schiavoni <>
Subject [digester] using xpath to select nodes
Date Thu, 09 Feb 2006 15:46:17 GMT
i have this kind of xml i want to parse:
<pageclass name='news'>
<page pageid="33">
            <metadata name="title>
             a title
            <metadata name="remoteURL">
            a url
<pageclass name='other'>
<page pageid="xx">

So in the digester i have this code (only relevant part ):

digester.setRules(new ExtendedBaseRules());

which doesn't work as I was supposing:  when I try to peek the object on the
stack, i get a NPE.
So the question is: does digester support that kind of xpath expressions to
select nodes?

To Iterate is Human, to Recurse, Divine
James O. Coplien, Bell Labs
(how good is to be human indeed)

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