XmlElement () { final XmlElement element = getXmlElement(); if (element instanceof XmlTag) { return element; } if (element instanceof XmlAttribute) { return ((XmlAttribute)element).getValueElement(); } return null; }