Example #1
0
        public static ChoXmlReader <T> LoadXElements(IEnumerable <XElement> xElements, ChoXmlRecordConfiguration configuration = null)
        {
            var r = new ChoXmlReader <T>(xElements, configuration);

            r._closeStreamOnDispose = true;

            return(r);
        }
Example #2
0
        public static ChoXmlReader <T> LoadText(string inputText, Encoding encoding = null, ChoXmlRecordConfiguration configuration = null, TraceSwitch traceSwitch = null)
        {
            var r = new ChoXmlReader <T>(inputText.ToStream(encoding), configuration)
            {
                TraceSwitch = traceSwitch == null ? ChoETLFramework.TraceSwitch : traceSwitch
            };

            return(r);
        }
Example #3
0
        public static ChoXmlReader <T> LoadText(string inputText, Encoding encoding = null, ChoXmlRecordConfiguration configuration = null)
        {
            var r = new ChoXmlReader <T>(inputText.ToStream(encoding), configuration);

            return(r);
        }