public static XmlElement GetProjectElement(XmlDocument projectDocument) { var hasProjectNode = ProjectXmlElementOperations.HasProjectElement(projectDocument, out var projectElement); if (!hasProjectNode) { throw new Exception("Project document has no project node."); } return(projectElement); }
public static XmlElement AcquireProjectElement(XmlDocument projectDocument) { var hasProjectNode = ProjectXmlElementOperations.HasProjectElement(projectDocument, out var projectElement); if (hasProjectNode) { return(projectElement); } projectElement = ProjectXmlElementOperations.AddProjectElement(projectDocument); return(projectElement); }
public static bool HasProjectElement(XmlDocument projectDocument) { var hasProjectNode = ProjectXmlElementOperations.HasProjectElement(projectDocument, out var dummy); return(hasProjectNode); }