I've added a check to see if the parsing is successful and, yes, seems that something went wrong there, but I wonder why without this check it parsed the first 14 elements....
Here is the check I've made:
Function mGetCategories() as Dynamic
catList= CreateObject("roList")
if m.rawResponse <> "" then
xml = CreateObject("roXMLElement")
if not xml.Parse( m.rawResponse ) then
print "+++++++++++++++++++++++++++Can't parse"
STOP
return catList
endif
endif
return catList
End Function
As belltown suggested, I've used
http://validator.w3.org and I have an error in the xml:
Line 421, Column 30: character "&" is the first character of a delimiter but occurred as data
<director>Donald Nij & Rick Senjin</director>
This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "<"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
So, the problem is related to the "&" symbol. How can I resolve this issue, but not on the server side, but on the Roku code... I could not find any solution...
Thank you.