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