question

mango-components avatar image
0 Likes"
mango-components asked

Help with VB.NET XMLDocument loop

Hi,

 

I have created this for loop in VB.NET to loop though the items returned from a search, and place them in a listview.

 

 

        Dim root As Xml.XmlNode = xmlDoc("findItemsByKeywordsResponse")

        For Each itemNode As Xml.XmlNode In root("searchResult")
            Dim ID As String = itemNode("itemId").InnerText
            Dim Title As String = itemNode("title").InnerText   

            ListView1.Items.Add(New ListViewItem(New String() {ID, Title}))
        Next
 

 

 

This was easy to do as the ItemID and Title are both listed within the node "SearchResult". But the price is under "sellingStatus".

 

How do I add the shipping price to the loop?

visual-basicxmldocumentvbnetxdocument
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
devanathan.developersupport@ebay.com avatar image
0 Likes"
devanathan.developersupport@ebay.com answered

Hello mango-components

 

You can retrieve the price of the item within the sellingStatus container using the following line of code.

 

Dim Price As String = itemNode("sellingStatus")("currentPrice").InnerText

 

Thanks

Devanathan

eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.