Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.w3c.dom.NodeList;
- import org.xml.sax.SAXException;
- import javax.xml.parsers.ParserConfigurationException;
- import java.io.IOException;
- /**
- * @author Tommie Lindberg (c15tlg@cs.umu.se)
- * @version 20/11/2017.
- */
- public class dom_test {
- public static void main(String[] args){
- try {
- Parse_dom dom = new Parse_dom();
- NodeList channels = dom.parse("http://api.sr.se/api/v2/channels?liveaudiotemplateid=1&audioquality=hi&pagination=false");
- dom.grabElement(channels);
- } catch (ParserConfigurationException e) {
- e.printStackTrace();
- } catch (SAXException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement