XmlUpdate Class

MSBuild

Updates a XML document using a XPath.


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class XmlUpdate
    Inherits Task
C#
public class XmlUpdate : Task
C++
ref class XmlUpdate : Task
J#
public class XmlUpdate extends Task
JScript
public class XmlUpdate extends Task

Example

Update a XML element.

 Copy Code
            <XmlUpdate Prefix="n"
                Namespace="http://schemas.microsoft.com/developer/msbuild/2003" 
                XPath="/n:Project/n:PropertyGroup/n:TestUpdate"
                XmlFileName="Subversion.proj"
                Value="Test from $(MSBuildProjectFile)"/>
            

Remarks

The XML node being updated must exist before using the XmlUpdate task.

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.XmlUpdate

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.