src/main/java/org/jboss/util/xml/catalog/readers/ExtendedXMLCatalogReader.java
/** The SAX <code>endElement</code> method does nothing. */
The SAX endElement method does nothing.
The SAX endElement method does nothing .
public void endElement (String namespaceURI,
			  String localName,
			  String qName)
    throws SAXException {
    super.endElement(namespaceURI, localName, qName);
    boolean inExtension = inExtensionNamespace();
    int entryType = -1;
    Vector entryArgs = new Vector();
    if (namespaceURI != null
	&& (extendedNamespaceName.equals(namespaceURI))
	&& !inExtension) {
      String popURI = (String) baseURIStack.pop();
      String baseURI = (String) baseURIStack.peek();
      if (!baseURI.equals(popURI)) {
	entryType = catalog.BASE;
	entryArgs.add(baseURI);
	debug.message(4, "(reset) xml:base", baseURI);
	try {
	  CatalogEntry ce = new CatalogEntry(entryType, entryArgs);
	  catalog.addEntry(ce);
	} catch (CatalogException cex) {
	  if (cex.getExceptionType() == CatalogException.INVALID_ENTRY_TYPE) {
	    debug.message(1, "Invalid catalog entry type", localName);
	  } else if (cex.getExceptionType() == CatalogException.INVALID_ENTRY) {
	    debug.message(1, "Invalid catalog entry (rbase)", localName);
	  }
	}
      }
    }
  }
public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { super . endElement ( namespaceURI , localName , qName ) ; boolean inExtension = inExtensionNamespace ( ) ; int entryType = - 1 ; Vector entryArgs = new Vector ( ) ; if ( namespaceURI != null && ( extendedNamespaceName . equals ( namespaceURI ) ) && ! inExtension ) { String popURI = ( String ) baseURIStack . pop ( ) ; String baseURI = ( String ) baseURIStack . peek ( ) ; if ( ! baseURI . equals ( popURI ) ) { entryType = catalog . BASE ; entryArgs . add ( baseURI ) ; debug . message ( 4 , "(reset) xml:base" , baseURI ) ; try { CatalogEntry ce = new CatalogEntry ( entryType , entryArgs ) ; catalog . addEntry ( ce ) ; } catch ( CatalogException cex ) { if ( cex . getExceptionType ( ) == CatalogException . INVALID_ENTRY_TYPE ) { debug . message ( 1 , "Invalid catalog entry type" , localName ) ; } else if ( cex . getExceptionType ( ) == CatalogException . INVALID_ENTRY ) { debug . message ( 1 , "Invalid catalog entry (rbase)" , localName ) ; } } } } }
The SAX <code>endElement</code> method does nothing.
The SAX <code > endElement< / code > method does nothing .
// Check after popping the stack so we don't erroneously think we // are our own extension namespace...