// Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved.

package jodd.lagarto.dom;

import java.util.List;

/**
 * Document node is always a root node.
 */
public class Document extends Node {

	public Document() {
		super(NodeType.DOCUMENT, null, true);
	}
	
	@Override
	public Document clone() {
		return cloneTo(new Document());
	}

	protected List<String> errors;

	/**
	 * Returns list of errors occurred during parsing.
	 * Returns <code>null</code> if parsing was
	 * successful; or if errors are not collected.
	 */
	public List<String> getErrors() {
		return errors;
	}
}

@@ -100,34 +100,8 @@
 %0D%0A%0D%0A
-import java.util.List;%0D%0A%0D%0A
 /**%0D
@@ -342,260 +342,7 @@
 %0D%0A%0D%0A
-%09protected List%3CString%3E errors;%0D%0A%0D%0A%09/**%0D%0A%09 * Returns list of errors occurred during parsing.%0D%0A%09 * Returns %3Ccode%3Enull%3C/code%3E if parsing was%0D%0A%09 * successful; or if errors are not collected.%0D%0A%09 */%0D%0A%09public List%3CString%3E getErrors() %7B%0D%0A%09%09return errors;%0D%0A%09%7D%0D%0A
 %7D%0D%0A

remove errors from document