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: 
belltown
Roku Guru

Re: How do I get XML information?

"scaper12123" wrote:
I've had a little look over my code and, after some experimentation, was able to get it to work with another xml document. Trouble is it won't work with the one i'm using. Is the header (<?xml version="1.0" encoding="utf-8" ?>) absolutely required for the GetToString() function to grab anything from the file?

I just tried retrieving an xml file with no ?xml header and no .xml file extension, using roUrlTransfer.GetString(). It worked just fine, even with an HTTP content-type of application/octet-stream.

If you want to send me a link to the file you're trying to retrieve, I could take a look and see if I'm able to retrieve it.
0 Kudos