Hi. I need to change an XML node value after its loaded for a photoviewer.
(I’ve no control over the XML format, so I need to edit it at runtime)
This <picture> has no path
<root>
<image>
<picture>10.jpg</picture>
</image>
</root>
This comes from the “images” folder
<root>
<image>
<picture>images/10.jpg</picture>
</image>
</root>
Any idea how I can insert the string “images/” at runtime, so when I force the photoviewer to reload, It reads the modified XML, giving me control over where the images come from?
I’m retrieving the node value (10.jpg) via…
[AS]
data_xml.firstChild.childNodes*.childNodes[j].firstChild.nodeValue;
[/AS]
Thanks,
Pablo