DukeOfMarshall
11 years agoVisitor
XML Parsing Structure
So the documentation for the roXMLElement object and parsing is fairly quiet and minimal on this issue.
http://sdkdocs.roku.com/display/sdkdoc/roXMLElement
Given an example XML file
What does the structure look like when parsed through the roXMLElement command?
I know you can call it like "rsp.foo[1]" and "rsp.foo[1].bar, but how do you extend that to attributes?
http://sdkdocs.roku.com/display/sdkdoc/roXMLElement
Given an example XML file
<?xml .... ?>
<feed>
<foo att="something">
<bar>text</bar>
<test>text</test>
</foo>
<foo att="something2">
<bar>text2</bar>
<test>text2</test>
</foo>
</feed>
What does the structure look like when parsed through the roXMLElement command?
rsp = CreateObject("roXMLElement")
rsp.Parse(html)
I know you can call it like "rsp.foo[1]" and "rsp.foo[1].bar, but how do you extend that to attributes?