Thread: XPath Help
View Single Post
  #1  
Old 07-13-2007, 04:15 PM
Too_Tall_Crown_Victoria Too_Tall_Crown_Victoria is online now
Registered User
 
Join Date: 01-14-2003
Posts: 44
XPath Help

I am trying to understand how to use xpath and VBP. I have an xml file that will contain the owners of each of our modules. The format is as follows:

<component>
<module name="ProjA" owner="bob@bob.com"/>
<module name="ProjB" owner="tim@tim.com"/>
. . .
</component>

I was using a Step Property action with a value:

[%READ_XML(D:\build\owners.xml,/Component/owner=@module name=%MY_PROJECT%)%]

All I get are errors.

I can get this to work if I use the format:

<component>
<ProjA>
<owner>bob@bob.com</owner>
</ProjA>
<ProjB>
<owner>tim@tim.com</owner>
</ProjB>
. . .
</component>

However I am told that this is not a properly formatted xml file.

Thanks for your help.
Reply With Quote