XmlPullParser parser = getParser();
if (!(entry instanceof SubscribedFeedsEntry)) {
throw new IllegalArgumentException("Expected SubscribedFeedsEntry!");
}
SubscribedFeedsEntry subscribedFeedsEntry =
(SubscribedFeedsEntry) entry;
String name = parser.getName();
if ("feedurl".equals(name)) {
FeedUrl feedUrl = new FeedUrl();
feedUrl.setFeed(parser.getAttributeValue(null /* ns */, "value"));
feedUrl.setService(parser.getAttributeValue(null /* ns */, "service"));
feedUrl.setAuthToken(parser.getAttributeValue(null /* ns */, "authtoken"));
subscribedFeedsEntry.setSubscribedFeed(feedUrl);
}
if ("routingInfo".equals(name)) {
subscribedFeedsEntry.setRoutingInfo(
XmlUtils.extractChildText(parser));
}
if ("clientToken".equals(name)) {
subscribedFeedsEntry.setClientToken(
XmlUtils.extractChildText(parser));
}