peskywinnets
Registered User.
- Local time
- Today, 23:58
- Joined
- Feb 4, 2014
- Messages
- 578
If I enter a particular URL into firefox, the returned XML begins like this....
which is nicely formed XML.
However if the same URL is submitted via VBA using this code...
the XML returned has a lot more info in it that's causing my XML parsing code to projectile vomit....
I'd much rather the XML came back as per firefox's returned XML.
Does anyone know how I can get to that goal?
Code:
<GetCompetitivePricingForASINResponse>
<GetCompetitivePricingForASINResult ASIN="B002L7HJAA" status="Success">
<Product>
<Identifiers>
<MarketplaceId>A1F83G8C2ARO7P</MarketplaceId>
etc, etc
which is nicely formed XML.
However if the same URL is submitted via VBA using this code...
Code:
Set XMLHttpRequest = New MSXML2.XMLHTTP60
XMLHttpRequest.Open "GET", SignedURL, False
the XML returned has a lot more info in it that's causing my XML parsing code to projectile vomit....
Code:
<?xml version="1.0"?>
<GetCompetitivePricingForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01">
<GetCompetitivePricingForASINResult ASIN="B002L7HJAA" status="Success">
<Product xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01" xmlns:ns2="http://mws.amazonservices.com/schema/Products/2011-10-01/default.xsd">
<Identifiers>
<MarketplaceId>A1F83G8C2ARO7P</MarketplaceId>
etc etc
I'd much rather the XML came back as per firefox's returned XML.
Does anyone know how I can get to that goal?