src/main/java/org/jboss/util/xml/XmlHelper.java
public static Element getOptionalChild(Element element, String tagName)
      throws Exception
   {
      return getOptionalChild(element, tagName, null);
   }
public static Element getOptionalChild(Element element, String tagName)
      throws Exception
   {
      return getOptionalChild(element, tagName, null);
   }
public static Element getOptionalChild ( Element element , String tagName ) throws Exception { return getOptionalChild ( element , tagName , null ) ; }
Gets the child of the specified element having the
specified name. If the child with this name doesn't exist
then null is returned instead.

@param element the parent element
@param tagName the name of the desired child
@return either the named child or null
@throws Exception
Gets the child of the specified element having the specified name . If the child with this name doesn t exist then null is returned instead .