Code example for Element

Methods: getFirstChildgetLastChildgetOwnerDocumentnormalize

0
    public Element getElement() {
        return element;
    } 
 
    public DocumentFragment getFragment() {
        element.normalize();
        Node node = element.getFirstChild();
        if (node == null) {
            return null; 
        } 
        Range range = ((DocumentRange) element.getOwnerDocument()).createRange();
        range.setStartBefore(node);
        range.setEndAfter(element.getLastChild());
        return range.cloneContents();
    } 
 
    public Object getConfiguration() {
        if (config == null) {
            XMap xmap = new XMap();
            String klass = element.getAttribute("class");
Contextual code suggestions in your IDE  Get Codota for Java