[quote=“agibsonsw”]@facelessuser Thank you.
For my own interest, what technology/extension can be used to directly edit, insert into, an XML file? I believe it’s possible but haven’t quite stumbled upon the technology that can do this. That is, without having to parse/load the whole file and then re-output it?
Andy.[/quote]
Nothing special is needed. Maybe it wouldn’t be so bad working directly with the XML.
You could just write the XML as string in the JavaScript and then just convert it:
[pre=#000000] 1456 * var* xml, parser;
1457 if (window.ActiveXObject){
1458 xml = new window.ActiveXObject(‘Microsoft.XMLDOM’);
1459 xml.async = ‘false’;
1460 if (!xml.loadXML(str)) xml = null;
1461 } else {
1462 parser = new window.DOMParser();
1463 xml = parser.parseFromString(str, ‘text/xml’);
1464 }[/pre]