Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import org.w3c.dom.*;

import java.net.*;

public class Main {
    public static URL getAttribURL(Element ele, String name, URL docRoot) {
        String sval = ele.getAttribute(name);

        try {
            return new URL(docRoot, sval);
        } catch (Exception e) {
            return null;
        }
    }
}