priya_sp
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016
02:01 AM
Problem with XML file
for example
i dont want to give the url in contenturi variable..i want to give a xml file name instead,tried giving this - [size=120]m.readContentTask.contenturi = "pkg:/sample.xml" [/size]but its not working out.
is there any way to achieve this?i dont find any example for json response.can anyone tel me how to deal with json response in Roku Scene graph components
m.readContentTask = createObject("roSGNode", "ContentReader")
m.readContentTask.observeField("content", "setpanels")
m.readContentTask.contenturi = "http://www.sdktestinglab.com/Tutorial/content/panelsetcontent.xml"
m.readContentTask.control = "RUN"
i dont want to give the url in contenturi variable..i want to give a xml file name instead,tried giving this - [size=120]m.readContentTask.contenturi = "pkg:/sample.xml" [/size]but its not working out.
is there any way to achieve this?i dont find any example for json response.can anyone tel me how to deal with json response in Roku Scene graph components
1 REPLY 1
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016
06:52 PM
Re: Problem with XML file
For once, that's not RSG problem. You are using somebody else's custom code (example?) where a custom task is spun off to read the content. I bet it blindly creates a roUrlTransfer object and that only works with http URIs, not local ones. It would be easy to fix.