“vaxace” wrote:
I’ve finally gotten around to trying to consume some XML from within BrightScript.
The documentation on the roXMLElement object is a bit light.
Can someone explain to me the difference between roXMLElement.GetBody() and roXMLElement.GetChildElements()?
They seem to be used interchangeably in the VideoPlayer sample.
Thanks,
D.
I just started working with this too, last night. I think GetBody(), along with GetText() gives you the contents of the element in string form, which GetChildElements() returns an roXMLList or roXMLElement if there’s only one.
“vaxace” wrote:
Actually, I just tested it in the debugger.
They both return an roXMLList.
Go figure :?
D.
Hrmm.. I wonder if it was GetNamedElements() that returned an array… I know I ran across one of the roXMLElement methods that returned an array. I swear!