package com.formulasearchengine.mathmltools.mml.elements;


import org.w3c.dom.Element;

class CSymbol {
    private boolean strict;
    private Element n;

    CSymbol(Element n, boolean strict) {
        this.strict = strict;
        this.n = n;
    }

    public String getCName() {
        return n.getTextContent();
    }

    public String getCd() {
        return n.getAttribute("cd");
    }

    public void setCd(String cd) {
        n.setAttribute("cd", cd);
    }

    @Override
    public String toString() {
        return getCd()+":"+getCName();
    }
}

package com.formulasearchengine.mathmltools.mml.elements;


import org.w3c.dom.Element;

class CSymbol {
    private boolean strict;
    private Element n;

    CSymbol(Element n, boolean strict) {
        this.strict = strict;
        this.n = n;
    }

    public String getCName() {
        return n.getTextContent();
    }

    public String getCd() {
        return n.getAttribute("cd");
    }

    public void setCd(String cd) {
        n.setAttribute("cd", cd);
    }

    @Override
    public String toString() {
        return getCd() + ":" + getCName();
    }
}

Fix WS issues