public static Element e(Document document, String tagName, A...attributes) {
        Element element = document.createElement(tagName);
        for(A a : attributes) {
            element.setAttribute(a.name, a.value);
        }
        return element;
    }