public ImportResult (Element importResultElem)
	{
        boolean wasSuccessful = Boolean.valueOf(importResultElem.getAttribute("successful")).booleanValue();
        this.setWasSuccessful(wasSuccessful);
        
        NodeList importResChildren = importResultElem.getChildNodes();
        for(int i = 0; i < importResChildren.getLength(); i++){
            Element elem = (Element)importResChildren.item(i);
            String tagName = elem.getTagName();
            if(tagName.equals("title")){
                this.setTitle(elem.getFirstChild().getNodeValue());
            }
            else if (tagName.equals("message")){
                this.setMessage(elem.getFirstChild().getNodeValue());
            }
            else if (tagName.equals("parserwarnings")){
                NodeList warningElems = elem.getElementsByTagName("warning");
                for(int j = 0; j < warningElems.getLength(); j++){
                    Element warningElem = (Element)warningElems.item(j);
                    this.getParserWarnings().add(warningElem.getFirstChild().getNodeValue());
                }
            }
        }
	}