public void AddWorkspace(RepositoryWorkspace ws) { if (ws != null) { workspaces.Add(ws); } }
private RepositoryWorkspace ParseWorkspace(XmlReader reader) { RepositoryWorkspace workspace = new RepositoryWorkspace(); reader.Read(); while (true) { if (reader.NodeType == XmlNodeType.Element) { AtomElement element = ParseWorkspaceElement(reader); if (element != null && element.Object is cmisRepositoryInfoType) { workspace.Id = ((cmisRepositoryInfoType)element.Object).repositoryId; } workspace.AddElement(element); } else if (reader.NodeType == XmlNodeType.EndElement) { break; } else { if (!reader.Read()) { break; } } } reader.Read(); return(workspace); }
private RepositoryWorkspace ParseWorkspace(XmlReader reader) { RepositoryWorkspace workspace = new RepositoryWorkspace(); reader.Read(); while (true) { if (reader.NodeType == XmlNodeType.Element) { AtomElement element = ParseWorkspaceElement(reader); if (element != null && element.Object is cmisRepositoryInfoType) { workspace.Id = ((cmisRepositoryInfoType)element.Object).repositoryId; } workspace.AddElement(element); } else if (reader.NodeType == XmlNodeType.EndElement) { break; } else { if (!reader.Read()) { break; } } } reader.Read(); return workspace; }