public Object parseXMLObject(XMLObject xo) throws XMLParseException {
  PatternList patternList=(PatternList)xo.getChild(0);
  Patterns patterns=new Patterns(patternList);
  for (int i=1; i < xo.getChildCount(); i++) {
    patterns.addPatterns((PatternList)xo.getChild(i));
  }
  if (xo.hasAttribute(XMLParser.ID)) {
    final Logger logger=Logger.getLogger("dr.evoxml");
    logger.info("Site patterns '" + xo.getId() + "' created by merging "+ xo.getChildCount()+ " pattern lists");
    logger.info("  pattern count = " + patterns.getPatternCount());
  }
  return patterns;
}

public Object parseXMLObject ( XMLObject xo ) throws XMLParseException { PatternList patternList = ( PatternList ) xo . getChild ( 0 ) ; Patterns patterns = new Patterns ( patternList ) ; for ( int i = 1 ; i < xo . getChildCount ( ) ; i ++ ) { patterns . addPatterns ( ( PatternList ) xo . getChild ( i ) ) ; } if ( xo . hasAttribute ( XMLParser . ID ) ) { final Logger logger = Logger . getLogger ( "dr.evoxml" ) ; logger . info ( "Site patterns '" + xo . getId ( ) + "' created by merging " + xo . getChildCount ( ) + " pattern lists" ) ; logger . info ( "  pattern count = " + patterns . getPatternCount ( ) ) ; } return patterns ; }
parses a patterns element and returns a patterns object .
