Code example for Stack

Methods: isEmpty, pop

0
		return this.schemaLocations.get(doc);
	} 
 
	/** Removes the first document from the stack */ 
	public Document popDocument() {
		if (!documents.isEmpty()) {
			return documents.pop();
		} 
		return null; 
	} 
	 
	/** Removes the first element from the stack */ 
	public Node popElement() {
		if (!elements.isEmpty()) {
			return elements.pop();
		} 
		return null; 
	} 
	 
	/** 
	 * Internal class that parses the value of the <code>schemaLocation</code> attribute and offers accessors to the