diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/ruby/base/ctx.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/context/ruby/base/ctx.rb b/scripts/context/ruby/base/ctx.rb index a077297f2..13b4045af 100644 --- a/scripts/context/ruby/base/ctx.rb +++ b/scripts/context/ruby/base/ctx.rb @@ -124,6 +124,11 @@ class CtxRunner report("loading ctx file #{@ctxname}") end + if @xmldata then + # out if a sudden rexml started to be picky about namespaces + @xmldata.gsub!(/<ctx:job>/,"<ctx:job xmlns:ctx='http://www.pragma-ade.com/rng/ctx.rng'>") + end + begin @xmldata = REXML::Document.new(@xmldata) rescue |