public void startElement(String label, Attribute[] attrs) throws org.dbwiki.exception.WikiException {
if ((label.equals(CopyPasteConstants.ElementLabelDatabase)) && (attrs.length == 2) && (_databaseInfo == null)) {
String name = this.getAttribute(attrs, CopyPasteConstants.AttributeLabelDatabaseName).value();
int version = Integer.parseInt(this.getAttribute(attrs, CopyPasteConstants.AttributeLabelVersion).value());
_databaseInfo = new PasteDatabaseInfo(name, version);
} else if ((label.equals(CopyPasteConstants.ElementLabelNode)) && (attrs.length == 2) && (_databaseInfo != null)) {
if (Integer.parseInt(this.getAttribute(attrs, CopyPasteConstants.AttributeLabelType).value()) == CopyPasteConstants.NodeTypeText) {
PasteTextNode node = new PasteTextNode(_databaseInfo);
if (_root == null) {
_root = node;