protected override void SetMapping(SXSchema mapping) { base.SetMapping(mapping); this.Iterator = null; this.Manager = new XmlNamespaceManager(new NameTable()); if (this.Schema == null) { return; } this.Manager = new XmlNamespaceManager(new NameTable()); foreach (SXSchemaRule rule in mapping.Rules) { if (rule.Name.Trim().ToLower() == "xmlns") { this.Manager.AddNamespace(rule.Param, rule.Value); } } if (this.Schema.Range != null) { this.Iterator = this.CreateIterator(this.Schema.Range.StartPosition.Trim()); } }
protected override void SetMapping(SXSchema mapping) { base.SetMapping(mapping); this.Iterator = null; this.Manager = new XmlNamespaceManager(new NameTable()); if (this.Schema == null) return; this.Manager = new XmlNamespaceManager(new NameTable()); foreach (SXSchemaRule rule in mapping.Rules) if (rule.Name.Trim().ToLower() == "xmlns") this.Manager.AddNamespace(rule.Param, rule.Value); if (this.Schema.Range != null) this.Iterator = this.CreateIterator(this.Schema.Range.StartPosition.Trim()); }