commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: DIGESTER - some sample code
Date Thu, 11 Dec 2008 16:13:24 GMT
Works for me if you change "DIFF" to "DIF".  Although, it doesn't
print anything.

On Thu, Dec 11, 2008 at 10:17 AM, Wm.A.Stafford
<stafford@marine.rutgers.edu> wrote:
> Here is some sample code from my Digester app:
>
>           java.net.URL GCMD_URL = new
> java.net.URL("http://gcmd.gsfc.nasa.gov/OpenAPI/getdif.py?format=xml&entry_id=eurobis_66");
>                     Digester digester = new Digester() ;
>           digester.setValidating ( false );
>                     digester.addObjectCreate( "DIFF", String.class) ; //
> DIFF is the outermost tag
>           String s = (String)digester.parse(GCMD_URL) ;
>            s.toString();
>            // s is null here
>
> Any ideas?
>
> -=bill
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message