code: void processXmlMediawiki() throws XMLStreamException, MwDumpFormatException {
  
  		while (this.xmlReader.hasNext()) {
  			switch (this.xmlReader.getEventType()) {
  
  			case XMLStreamConstants.START_ELEMENT:
  				switch (this.xmlReader.getLocalName()) {
  				case MwRevisionDumpFileProcessor.E_MEDIAWIKI:
  					break;
  				case MwRevisionDumpFileProcessor.E_SITEINFO:
  					processXmlSiteinfo();
  					this.mwRevisionProcessor.startRevisionProcessing(
  							this.sitename, this.baseUrl, this.namespaces);
  					break;
  				case MwRevisionDumpFileProcessor.E_PAGE:
  					tryProcessXmlPage();
  					break;
  				}
  				break;
  
  			case XMLStreamConstants.END_ELEMENT:
  				if (!"mediawiki".equals(this.xmlReader.getLocalName())) {
  					throw new MwDumpFormatException("Unexpected end element </"
  							+ this.xmlReader.getLocalName() + ">.");
  				}
  				break;
  
  			}
  
  			this.xmlReader.next();
  		}
  	}
docs: Processes current XML starting from a &lt;mediawiki&gt; start tag up to
  the corresponding end tag. This method uses the current state of
  {@link #xmlReader} and stores its results in according member fields.
  When the method has finished, {@link #xmlReader} will be at the next
  element after the closing tag of this block.
  
  @throws XMLStreamException
  if there was a problem reading the XML or if the XML is
  malformed
  @throws MwDumpFormatException
  if the contents of the XML file did not match our
  expectations of a MediaWiki XML dump