Banta67
16 years agoVisitor
XML - Categories/Levels Question
Hello,
I am trying to develop a channel based on the VIDEOPLAYER Sample.
Currently, in the sample categories.xml, each category has <categoryLeaf> nodes, as such.....
<category title="Technology" description="TED Talks on Technology" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png">
<categoryLeaf title="The Mind" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>
<categoryLeaf title="Global Issues" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/globalissues.xml" />
</category>
My question is regarding categories that don't need leafs. How could I just select a category and go directly to the associated feed without the need to select a leaf?
Would this work?
<category title="Technology" description="TED Talks on Technology" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>
<category title="Entertainment" description="TED Talks on Entertainment" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Entertainment.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Entertainment.png">
<categoryLeaf title="Music" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/music.xml" />
<categoryLeaf title="Inspiration" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/inspiration.xml" />
</category>
In the case above, the FEED attribute is moved out of the <categoryLeaf> node and placed in the parent <category> node. If the user selects Technology, they are taken directly to the themind.xml feed. However if they selected Entertainment, they would have to choose a leaf to further drill down.
Make sense? Would this work? If not, can you explain what it would entail to make this work?
Thank you for your help.
Banta
I am trying to develop a channel based on the VIDEOPLAYER Sample.
Currently, in the sample categories.xml, each category has <categoryLeaf> nodes, as such.....
<category title="Technology" description="TED Talks on Technology" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png">
<categoryLeaf title="The Mind" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>
<categoryLeaf title="Global Issues" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/globalissues.xml" />
</category>
My question is regarding categories that don't need leafs. How could I just select a category and go directly to the associated feed without the need to select a leaf?
Would this work?
<category title="Technology" description="TED Talks on Technology" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Technology.png" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/themind.xml"/>
<category title="Entertainment" description="TED Talks on Entertainment" sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Entertainment.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/TED_Entertainment.png">
<categoryLeaf title="Music" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/music.xml" />
<categoryLeaf title="Inspiration" description="" feed="http://rokudev.roku.com/rokudev/examples/videoplayer/xml/inspiration.xml" />
</category>
In the case above, the FEED attribute is moved out of the <categoryLeaf> node and placed in the parent <category> node. If the user selects Technology, they are taken directly to the themind.xml feed. However if they selected Entertainment, they would have to choose a leaf to further drill down.
Make sense? Would this work? If not, can you explain what it would entail to make this work?
Thank you for your help.
Banta