我是新来Visual Studio和我的头很多东西,但我卡住,可以使用一些帮助。XML xpath视觉工作室
我需要创建绑定到XML文档中的字段的下拉列表。我已经尝试配置数据源并添加xpath表达式,但没有显示出来,我不知道我在做什么错误。
这是从文件中提取的,并说我想要任何字段,即PropertyId
?
<PropertyDatabase>
<imageList>
<Images>
<ImageId>2</ImageId>
<PropertyId>60</PropertyId>
<ThumbUrl>propertyImages/propertyThumb60_8.jpg</ThumbUrl>
<MainUrl>propertyImages/propertyLarge60_8.jpg</MainUrl>
<Active />
</Images>
<Images>
<ImageId>3</ImageId>
<PropertyId>22</PropertyId>
<ThumbUrl>propertyImages/propertyThumb22_1.jpg</ThumbUrl>
<MainUrl>propertyImages/propertyLarge22_1.jpg</MainUrl>
<Active />
</Images>
灿你请显示你使用的代码? – 2011-04-21 19:23:27