create a function that prepends that string.
Already thought of that one but that would need a lot of effort to trawl through inherited code and I don't have the time to do this.
So the easiest approach I thought was to hijack the XML.prototype.load method and add the additional "checking code" into this method.
you don't need to hijack anything:
Thanks for coming back so quickly.
I failed to add that the inherited code uses the XML.load methods in many, many locations. Hence wanting to use an extended XML.prototype.load method. That way I only need to apply this code in one place and at run time, everywhere the XML.load is used, the prototype will do all the pre-checking. Also, it will not need to add any code anywhere else.
p.s when using the adobe forums, please mark helpful/correct responses, if there are any.