-
- def create(self, type="advertisement"):
- RSpec.create(self)
- for namespace in self.namespaces:
- xmlns = "xmlns"
- if namespace not in 'rspecv2':
- xmlns = xmlns + ":" + namespace
- self.xml.set(xmlns, self.namespaces[namespace])
- for schema in self.schemas:
- self.xml.set(schema+":schemaLocation", self.schemas[schema])