Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
EnTerr
Roku Guru

Re: XML Offal Text

bump!
here is yet another trivial example, will it blend?
http://oreilly.com/catalog/learnxml/cha ... ml#anatomy
0 Kudos
EnTerr
Roku Guru

Re: XML Offal Text

Update: just noticed that a new method has sprung, ifXMLElement.GetChildNodes() - and it seems designed to address the issue from this thread.

Other changes have been made to roXMLElement too: parsing might have been improved so that additional texts don't get lost; getText() now seems to concatenate any such texts. An example is worth a thousand words:
BrightScript Debugger> x = CreateObject("roXMLElement")
BrightScript Debugger> x.parse("<xml> foo <tag> bar </tag> qux </xml>")
BrightScript Debugger> ? x.genXML(false) 'before, the output of this was not right
<xml> foo <tag> bar </tag> qux </xml>
BrightScript Debugger> ? x.getText()
foo qux
BrightScript Debugger> ? x.getChildElements()
<Component: roXMLElement>

BrightScript Debugger> ? x.getChildNodes()
foo
<Component: roXMLElement>
qux

It's good news. My hopes that somebody in RokuCo is listening are rekindled!

Unfortunately nobody thought of dropping a note here for us to know about the change nor did mention it in Release Notes.
Which firmware does the new method work in, shouldn't this be documented?
0 Kudos
Vishalseth
Reel Rookie

Re: XML Orphaned Text

In fact I also want to know the same.

0 Kudos
Vishalseth
Reel Rookie

Re: XML Orphaned Text

I am also facing a similar issue with XML Orphaned Text. 
Kindly help me out too.

0 Kudos