function ShareNode(node) {
    this.nodeId = node.getAttribute("nodeid");
    this.name = node.getAttribute("name");
    this.description = node.getAttribute("description");
    this.createDate = node.getAttribute("createdate");
    this.modifiedDate = node.getAttribute("modifieddate");
    this.owner = node.getAttribute("owner");
    this.ownerName = node.getAttribute("ownername");
    this.directory = node.getAttribute("directory") == "true";
    this.hasContent = node.getAttribute("hascontent") == "true";
    this.link = node.getAttribute("link") == "true";
    this.adobeDoc = node.getAttribute("adobedoc") == "true";
    this.fileSize = node.getAttribute("filesize");
    this.mimeType = node.getAttribute("mimetype");
    this.author = node.getAttribute("author");
    this.behavior = node.getAttribute("behavior");
    this.thumbnailState = node.getAttribute("thumbnailstate");
    this.flashPreviewState = node.getAttribute("flashpreviewstate");
    this.flashPreviewPageCount = node.getAttribute("flashpreviewpagecount");
    this.pdfState = node.getAttribute("pdfState");
    this.recipientUrl = node.getAttribute("recipienturl");
    this.shareLevel = node.getAttribute("sharelevel");
    this.recipientsArray = new Array();
    this.recipients = "";
    var r = node.getElementsByTagName("recipient");
    for (var i = 0; i < r.length; i++) {
        var item = r.item(i);
        var email = item.firstChild.nodeValue;
         this.recipientsArray.push(email);
        this.recipients += email + " ";
    }
    this.thumbnailUrl = null;
}

ShareNode.prototype.nodeId;
ShareNode.prototype.name;
ShareNode.prototype.description;
ShareNode.prototype.createDate;
ShareNode.prototype.modifiedDate;
ShareNode.prototype.owner;
ShareNode.prototype.ownerName;
ShareNode.prototype.directory;
ShareNode.prototype.hasContent;
ShareNode.prototype.link;
ShareNode.prototype.adobeDoc;
ShareNode.prototype.fileSize;
ShareNode.prototype.mimeType;
ShareNode.prototype.author;
ShareNode.prototype.behavior;
ShareNode.prototype.thumbnailState;
ShareNode.prototype.flashPreviewState;
ShareNode.prototype.flashPreviewPageCount;
ShareNode.prototype.pdfState;
ShareNode.prototype.recipientUrl;
ShareNode.prototype.shareLevel;
ShareNode.prototype.recipients;
ShareNode.prototype.thumbnailUrl;
