Hi wondering how can we just get a specific info field of a GetItem request?
We make the request using the following with `ReturnAll`:
<?xml version="1.0" encoding="utf-8"?> <GetItem xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken>{self.key}</eBayAuthToken> </RequesterCredentials> <ItemID>{itemid}</ItemID> <IncludeItemSpecifics>True</IncludeItemSpecifics> <DetailLevel>ReturnAll</DetailLevel> </GetItem>
Which gives us the following XML tree:
"ItemSpecifics": { "NameValueList": [ { "Name": "Brand", "Source": "ItemSpecific", "Value": "Foo Bar Value" }, { "Name": "Part Type", "Source": "ItemSpecific", "Value": "Foo Bar Value" }, { "Name": "Manufacturer Part Number", "Source": "ItemSpecific", "Value": "Foo-123 Foo-456 Bar-123" }, ] }
Currently, we can parse the XML to get anything that we need. But how can we modify our XML, so we only get "Value": "Foo-123 Foo-456 Bar-123" from ebay and nothing else?