protected override IRecord ReadNextRecord() { if (_reader == null || (_reader.Name != this.ValuesRowElement)) { return(null); } else { if (_recDoc == null) { _recDoc = new XmlDocument(); } _recDoc.LoadXml(_reader.ReadOuterXml()); var rec = new XmlRecord(_properties, _wktReader, _recDoc[this.ValuesRowElement].SelectNodes(this.ValuesRowPropertyElement), this.ValuesRowPropertyNameElement, this.ValuesRowPropertyValueElement); return(rec); } }
protected override IRecord ReadNextRecord() { if (_reader == null || (_reader.Name != this.ValuesRowElement)) { return(null); } else { if (_recDoc == null) { _recDoc = new XmlDocument(); } //TODO: We can probably make this more efficient. _recDoc.LoadXml(_reader.ReadOuterXml()); var propertyNodeList = _recDoc[this.ValuesRowElement].SelectNodes(this.ValuesRowPropertyElement); var rec = new XmlRecord(_properties, _wktReader, propertyNodeList, this.ValuesRowPropertyNameElement, this.ValuesRowPropertyValueElement); var feat = new FeatureBase(this.ClassDefinition); feat.Update(rec); return(feat); } }
protected override IRecord ReadNextRecord() { if (_reader == null || (_reader.Name != this.ValuesRowElement)) { return null; } else { if (_recDoc == null) _recDoc = new XmlDocument(); _recDoc.LoadXml(_reader.ReadOuterXml()); var rec = new XmlRecord(_properties, _wktReader, _recDoc[this.ValuesRowElement].SelectNodes(this.ValuesRowPropertyElement), this.ValuesRowPropertyNameElement, this.ValuesRowPropertyValueElement); return rec; } }