public OnixEnumerator(OnixParser ProvidedParser, FileInfo OnixFilepath) { this.ProductXmlTag = ProvidedParser.ReferenceVersion ? "Product" : "product"; this.OnixParser = ProvidedParser; this.OnixReader = OnixParser.CreateXmlReader(OnixFilepath, false); ProductSerializer = new XmlSerializer(typeof(OnixProduct), new XmlRootAttribute(this.ProductXmlTag)); }
public OnixEnumerator(OnixParser ProvidedParser, StringBuilder OnixContent) { this.ProductXmlTag = ProvidedParser.ReferenceVersion ? "Product" : "product"; this.OnixParser = ProvidedParser; this.OnixReader = OnixParser.CreateXmlReader(OnixContent, false); ProductSerializer = new XmlSerializer(typeof(OnixProduct), new XmlRootAttribute(this.ProductXmlTag)); CurrentCommList = new List <OnixTextContent>(); }