One minute
Get XML Data won’t parse XML object Pentaho
š“ Careful You’re reading an old article ! Some links might be broken and content may be outdated
I had an issue with Pentaho today. It wasnāt able to simply parse this XML that I was fetching from Amazon Marketplace Webservice.
Hereās the data I got :
<SubmitFeedResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
<SubmitFeedResult>
<FeedSubmissionInfo>
<FeedSubmissionId>MY_FEED_ID</FeedSubmissionId>
<FeedType>_POST_INVENTORY_AVAILABILITY_DATA_</FeedType>
<SubmittedDate>2016-08-01T19:28:30+00:00</SubmittedDate>
<FeedProcessingStatus>_SUBMITTED_</FeedProcessingStatus>
</FeedSubmissionInfo>
</SubmitFeedResult>
<ResponseMetadata>
<RequestId>MY_REQUEST_ID</RequestId>
</ResponseMetadata>
</SubmitFeedResponse>
The step « Get XML DataĀ Ā» couldnāt parse it because of the xmlns attribute tag. So I had to add a step « Replace in stringĀ Ā» that would delete this attribute.
Read other posts