krh5150
13 years agoVisitor
Update Existing XML File on Separate Drive
Hi,
Based on the documentation and what I could find elsewhere, I cannot figure out how to open an existing XML file for updating a single field and save. Basically, what I'm trying to do is instead of saving the current position of a video onto the Roku registry, I would like to store this value on the video's data XML file. There is a field in the XML file for this position already. The starting value is 0, but when a video is stopped, I would like to reopen this XML file (stored on a separate drive) for updating (writing) this field.
Can this be done on the Roku and if so, is there sample code of updating an existing XML file?
Thanks,
Kevin
Based on the documentation and what I could find elsewhere, I cannot figure out how to open an existing XML file for updating a single field and save. Basically, what I'm trying to do is instead of saving the current position of a video onto the Roku registry, I would like to store this value on the video's data XML file. There is a field in the XML file for this position already. The starting value is 0, but when a video is stopped, I would like to reopen this XML file (stored on a separate drive) for updating (writing) this field.
Can this be done on the Roku and if so, is there sample code of updating an existing XML file?
Thanks,
Kevin