Skip to content

Instantly share code, notes, and snippets.

@lindenb
Created January 13, 2011 20:55
Show Gist options
  • Save lindenb/778589 to your computer and use it in GitHub Desktop.
Save lindenb/778589 to your computer and use it in GitHub Desktop.
/**
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