code: public static void processConditions(final String condition, final Document doc, final String defaultCondition) {
          processConditions(condition, doc, defaultCondition, true);
      }
docs: Check the XML Document and it's children for condition
  statements. If any are found then check if the condition
  matches the passed condition string. If they don't match
  then remove the nodes.
  
  @param condition        The condition regex to be tested against.
  @param doc              The Document to check for conditional statements.
  @param defaultCondition The default condition to allow a default block when processing conditions.