function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bdensmorebdensmore 

assigning xml element to Integer

I'm using the blogger API and trying to loop over all the entries from my blogger account. There is an element called totalResults that contains the total number of posts in the blog.

When I try to assign totalResults to an Integer I keep getting this error:
Save error: Initial term of field expression must be a concrete SObject: LIST:XMLDom.Element

I've tried assigning it to lists, converting it to an Integer and I keep getting this error.

Does anyone know of a way to do this?

This is what I'm testing with:
       xmldom.element oneBlog = service.getBlogTitle(allBlogs.entries[0].getValue('title'));
       string postFeedUrl = GoogleData.getRelLink(oneBlog, BloggerService.postUrl);
       GoogleData posts = service.getFeed( postFeedUrl );
       Integer entryLen =  posts.entries.totalResults;

Thanks,
Ben