babuhari123
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2012
10:05 PM
How to parse xml file from localfile with out using http req
Hi friend,
My problem is my xml file is in source folder i want to parse that xml file but i dont know how to call that xml file without using http request can any one tell me how parse that local xml file if possible one small example please....
My problem is my xml file is in source folder i want to parse that xml file but i dont know how to call that xml file without using http request can any one tell me how parse that local xml file if possible one small example please....
2 REPLIES 2
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2012
01:52 AM
Re: How to parse xml file from localfile with out using http
If it's in your source directory (and I'd recommend creating a separate directory for your XML file(s)), you have to read it into a string variable. Something like this:
Hope this helps!
-JT
xml = ReadAsciiFile("pkg:/source/myxml.xml")
xmlel = CreateObject("roXmlElement")
xmlel.Parse(xml)
Hope this helps!
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
babuhari123
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2012
06:05 AM
Re: How to parse xml file from localfile with out using http
Thanq for reply