37 references to XmlDocument
Microsoft.Build (31)
Construction\ProjectElementContainer.cs (8)
526if (XmlDocument.PreserveWhitespace) 532var newWhitespaceNode = XmlDocument.CreateWhitespace(referenceSibling.XmlElement.PreviousSibling.Value); 542if (XmlDocument.PreserveWhitespace) 548var newWhitespaceNode = XmlDocument.CreateWhitespace(child.XmlElement.PreviousSibling.Value); 558if (XmlDocument.PreserveWhitespace) 568var leadingWhitespaceNode = XmlDocument.CreateWhitespace(Environment.NewLine + parentIndentation + DEFAULT_INDENT); 569var trailingWhiteSpaceNode = XmlDocument.CreateWhitespace(Environment.NewLine + parentIndentation); 612if (XmlDocument.PreserveWhitespace)
Construction\ProjectExtensionsElement.cs (1)
137idElement = XmlDocument.CreateElement(name, XmlElement.NamespaceURI);
Construction\ProjectRootElement.cs (14)
422if (XmlDocument != null) 424XmlDocument.FullPath = newFullPath; 461var declaration = XmlDocument.FirstChild as XmlDeclaration; 562projectWriter.Initialize(XmlDocument); 563XmlDocument.Save(projectWriter); 579public bool PreserveFormatting => Link != null ? RootLink.PreserveFormatting : XmlDocument?.PreserveWhitespace ?? false; 1531projectWriter.Initialize(XmlDocument); 1532XmlDocument.Save(projectWriter); 1599projectWriter.Initialize(XmlDocument); 1600XmlDocument.Save(projectWriter); 1692var oldDocument = XmlDocument; 1795return (XmlElementWithLocation)XmlDocument.CreateElement(name, XmlNamespace, location); 2076if (XmlDocument != null) 2078XmlDocument.FullPath = fullPath;
Evaluation\Preprocessor.cs (5)
90XmlDocument outerDocument = _project.Xml.XmlDocument; 143if (!_implicitImportsByProject.TryGetValue(resolvedImport.ImportingElement.XmlDocument, out imports)) 146_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>(); 149imports = _implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument]; 301XmlDocument innerDocument = resolved.XmlDocument;
Evaluation\ProjectRootElementCache.cs (3)
209document.PreserveWhitespace = projectRootElement.XmlDocument.PreserveWhitespace; 217string cacheContent = projectRootElement.XmlDocument.OuterXml; 319if (preserveFormatting != null && projectRootElement != null && projectRootElement.XmlDocument.PreserveWhitespace != preserveFormatting)
Microsoft.Build.Engine.UnitTests (6)
ConsoleLogger_Tests.cs (2)
151System.Xml.XmlAttribute attribute = task.XmlDocument.CreateAttribute("Text"); 154attribute = task.XmlDocument.CreateAttribute("MessageImportance");
Construction\ProjectRootElement_Tests.cs (4)
78Assert.False(xml.XmlDocument.IsReadOnly); 79var children = xml.XmlDocument.ChildNodes; 110Assert.True(xml.XmlDocument.IsReadOnly); 111var children = xml.XmlDocument.ChildNodes;