src/main/java/org/jboss/util/xml/XmlHelper.java
public static String getOptionalChildContent(Element element,
                                                String tagName)
      throws Exception
   {
      return getElementContent(getOptionalChild(element, tagName));
   }
public static String getOptionalChildContent(Element element,
                                                String tagName)
      throws Exception
   {
      return getElementContent(getOptionalChild(element, tagName));
   }
Macro to get the content of an optional child element.

@param element    The parent element.
@param tagName    The name of the desired child.
@return           The element content or null.
@throws Exception