The GetXmlElementAttributeValue Task will get an attributes value of the Xml Element found using the XPath value.

Example Usage:
    <GetXmlElementAttributeValue XmlFile="$(XmlFilePath)" XPath="/Project/Import[1]" Name="Project">
      <Output PropertyName="ImportValue" TaskParameter="Value" />
    </GetXmlElementAttributeValue> 

This gets the Value of the Project attribute in the first Import element that is a child to the root Project element.

Attribute Description Required Type Direction
Name The name of the attribute to get the value for True String Input
NamespaceURI The namespace URI used to to locate 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 True String Input
XPath The XPath used to locate the element which the attribute is a child of True String Input
Value The value of the Attribute N/A String Output

Last edited Feb 17, 2007 at 3:53 AM by camalot, version 1

Comments

No comments yet.