XmlFile PropertiesMSBuild Extension Pack Help 4.0.12.0

The XmlFile type exposes the following members.

Properties

  NameDescription
Public propertyElement
Sets the element. For AddElement, if the element exists, it's InnerText / InnerXml will be updated
Public propertyElements
Gets the elements selected using ReadElements
Public propertyFile
Sets the file.
Public propertyInnerText
Sets the InnerText.
Public propertyInnerXml
Sets the InnerXml.
Public propertyInsertAfterXPath
Specifies the XPath to be used to control where a new element is added. The Xpath must resolve to single node.
Public propertyInsertBeforeXPath
Specifies the XPath to be used to control where a new element is added. The Xpath must resolve to single node.
Public propertyKey
Sets the Attribute key.
Public propertyNamespaces
TaskItems specifiying "Prefix" and "Uri" attributes for use with the specified XPath
Public propertyParentElement
Sets the parent element.
Public propertyPrefix
Sets the Prefix used for an added element/attribute, prefix must exists in Namespaces.
Public propertyReadChildrenToMetadata
When using ReadElements, specifies whether the first level child elements should be added as metadata. Child elements will override any read attributes of the same name. Default is false.
Public propertyRetryCount
Sets a value indicating how many times to retry saving the file, e.g. if files are temporarily locked. Default is 5. The retry occurs every 5 seconds.
Public propertyValue
Gets or Sets the Attribute key value. Also stores the result of any Read TaskActions
Public propertyXPath
Specifies the XPath to be used
Top
See Also

Reference