Creates an XmlElement and adds it to the element that is found from the XPath. If XPath is Empty, then the element will be added to the root element. If the root element does not exist, this element will be added as the root element.

Example Usage:
 <AddXmlElement XmlFile="$(MSBuildProjectDirectory)\$(OutputPath)Test.xml" Name="Import" /> 


Attribute Description Required Type Direction
Name The name of the element True String Input
NamespaceURI The namespace URI for the element False String Input
Prefix The namespace prefix for the element False String Input
XmlFile The path and file name of the xml document to add the element to True String Input
XPath The xpath used to locate the element to append this new element to. If this is left empty then the element will be added to the root element. If there is not a root element in the document, this will become the root element. False Input

Last edited Feb 17, 2007 at 4:07 AM by camalot, version 3

Comments

No comments yet.