Created
January 13, 2011 20:55
-
-
Save lindenb/778589 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
http://stackoverflow.com/questions/4684930 | |
javac Test.java | |
java Test | |
*/ | |
import javax.xml.parsers.*; | |
public class Test | |
{ | |
public static void main(String args[]) | |
{ | |
try | |
{ | |
SAXParserFactory f=SAXParserFactory.newInstance(); | |
f.setNamespaceAware(false); | |
f.setValidating(false); | |
f.newSAXParser().parse( | |
"http://genome.ucsc.edu/cgi-bin/das/hg18/dna?segment=chr1%3A10%2C20", | |
new org.xml.sax.helpers.DefaultHandler() | |
); | |
System.out.println("OK"); | |
} | |
catch(Exception err) | |
{ | |
err.printStackTrace(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment