This type of error is indicative of a software bug rather than a problem with the script itself, but I do not recognize that bug in Junos 9.3S10. I'd recommend you open a case with JTAC to help determine what bug it is and if any workaround exists.
After upgrading from 9.2R3.5 to 9.3S10, the attached script is no longer working. I see these errors:
# commit check re0: configuration check succeeds re1: xmn:rpc results:41:(36) Opening and ending tag mismatch: logical-interface line 36 and interface-information xmn:rpc results:42:(8) Opening and ending tag mismatch: physical-interface line 8 and rpc-reply xmn:rpc results:44:(7) Opening and ending tag mismatch: interface-information line 7 and junoscript xmn:rpc results:45:(6) Premature end of data in tag rpc-reply line 6 xmn:rpc results:45:(2) Premature end of data in tag junoscript line 2 error: commit script: xml-mode: could not read content error: xmlXPathCompiledEval: evaluation failed error: runtime error: file /var/db/scripts/commit/interface-disable.slax element variable error: Failed to evaluate the expression of variable 'interfaces'. error: 9 errors reported by commit scripts error: commit script failure re0: error: remote commit-configuration failed on re1
lines 7 and 8 are name space commands. I missing something obvious here. Help me out,