Call this method with true to allow for the absence of an href attribute. By default, a null href value causes the anchor to not display at all, and only display nested HTMLElement objects.
HTMLAnchor Class | com.plumtree.xpshared.htmlelements Namespace