Sha256: 77c7d314e56d85618e1210263de76dd227fac1e4314a92ddbdeb78f1b5cdfb14
Contents?: true
Size: 548 Bytes
Versions: 46
Compression:
Stored size: 548 Bytes
Contents
#!/usr/bin/ruby require 'xml/smart' Dir['*.xml'].each do |f| XML::Smart.modify(f) do |doc| doc.register_namespace 'd', 'http://cpee.org/ns/description/1.0' doc.register_namespace 'p', 'http://riddl.org/ns/common-patterns/properties/1.0' if doc.root.qname.name == 'testset' doc.find('//attributes | //endpoints | //dataelements | //positions | //transformation | //handlerwrapper | //description').each do |e| e.namespaces[nil] = 'http://cpee.org/ns/properties/2.0' e.namespace = nil end end end end
Version data entries
46 entries across 27 versions & 1 rubygems