commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wm.A.Stafford" <staff...@marine.rutgers.edu>
Subject DIGESTER - some sample code
Date Thu, 11 Dec 2008 15:17:00 GMT
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


Mime
View raw message