< script> DocHead.innerHTML='< row>< oper>B< /oper>< /row>' < /script>Note that to match your original sample, you need to also add the < DocHead> and < /DocHead> at the beginning and end of the above string.
>< xml id=DocHead javaDSOCompatible="true"> >< DocHead>< row>< oper>A< /oper>< /row>< /DocHead> >< /xml> > >< script> >DocHead.LoadXML( '< row>< oper>B< /oper>< /row>'); >< /script> >