Too_Tall_Crown_Victoria
07-13-2007, 04:15 PM
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.
<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.