[Slide]

public void startDocument () 
{
   elements = 0;
   attributes = 0;
} 

public void startElement (String uri, String local, String raw, Attributes attrs) 
{
   elements++;
   if (attrs != null) {
      attributes += attrs.getLength();
   }
}

Copyright (c) 2001 Mary Holstege
All rights reserved.