Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

VBA - parsing XML namespace problem

$
0
0

Hi,

I've spent the guts of a week trying to resolve this ....I haven't yet.

My goal is simply extracting a value from the xml below (the value I wish to extract is "Amount"...which I've bolded.)

But the first couple of lines of XML in bold are causing a problem with everything I've tried ...can you help?

<xml version="1.0">

 <GetCompetitivePricingForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-  10-01">
 <GetCompetitivePricingForASINResult ASIN="B003L6HJAA" status="Success">
 <Product xmlns:ns2="http://mws.amazonservices.com/schema/Products/2011-10-01/default.xsd">
 <Identifiers>
 <MarketplaceASIN>
 <MarketplaceId>A1F83G8C2ARO7P</MarketplaceId><ASIN>B003L6HJAA</ASIN></MarketplaceASIN>
 </Identifiers>
 <CompetitivePricing>
 <CompetitivePrices>
 <CompetitivePrice bel c subc><CompetitivePriceId>1</CompetitivePriceId><Price>
 <LandedPrice>
 <CurrencyCode>GBP</CurrencyCode><Amount>14.45</Amount></LandedPrice>
 <ListingPrice>
 <CurrencyCode>GBP</CurrencyCode><Amount>14.45</Amount></ListingPrice>
 <Shipping>
 <CurrencyCode>GBP</CurrencyCode><Amount>0.00</Amount>
 </Shipping>
 </Price>
 </CompetitivePrice>
 </CompetitivePrices>
 <NumberOfOfferListings><OfferListingCount c>34</OfferListingCount><OfferListingCount c>34</OfferListingCount></NumberOfOfferListings></CompetitivePricing>
 <SalesRankings>
 <SalesRank>
 <ProductCategoryId>home_improvement_display_on_website</ProductCategoryId><Rank>14121</Rank>
 </SalesRank>
 <SalesRank>
 <ProductCategoryId>home_and_garden_display_on_website</ProductCategoryId><Rank>71928</Rank>
 </SalesRank>
 <SalesRank>
 <ProductCategoryId>1938969031</ProductCategoryId><Rank>180</Rank>
 </SalesRank>
 </SalesRankings>
 </Product>
 </GetCompetitivePricingForASINResult><ResponseMetadata>
 <RequestId>8c59ff95-ff9a-480a-82e7-9f87bfe180f9</RequestId></ResponseMetadata>
 </GetCompetitivePricingForASINResponse>




Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>