public static PropertyTreeXmlReader CreateXml(string fileName,
                                               Encoding encoding = null,
                                               PropertyTreeXmlReaderSettings settings = null)
 {
     // TODO Use the encoding
     XmlReaderSettings xsettings = new XmlReaderSettings {};
     XmlReader xr = XmlReader.Create(fileName, xsettings);
     return new PropertyTreeXmlReader(xr);
 }
        // TODO Better involvement of settings

        public static PropertyTreeXmlReader CreateXml(XmlReader reader,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            if (reader == null)
            {
                throw new ArgumentNullException("reader"); // $NON-NLS-1
            }
            return(new PropertyTreeXmlReader(reader, null));
        }
        public static PropertyTreeXmlReader CreateXml(string fileName,
                                                      Encoding encoding = null,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            // TODO Use the encoding
            XmlReaderSettings xsettings = new XmlReaderSettings {
            };
            XmlReader xr = XmlReader.Create(fileName, xsettings);

            return(new PropertyTreeXmlReader(xr, null));
        }
        public static PropertyTreeXmlReader CreateXml(StreamContext streamContext,
                                                      Encoding encoding = null,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            if (streamContext == null)
            {
                throw new ArgumentNullException("streamContext"); // $NON-NLS-1
            }
            XmlReaderSettings xsettings = new XmlReaderSettings {
            };
            // TODO Use the encoding
            XmlReader xr = XmlReader.Create(streamContext.OpenRead(), xsettings);

            return(new PropertyTreeXmlReader(xr, streamContext.Uri));
        }
        public static PropertyTreeXmlReader CreateXml(Stream stream,
                                                      Encoding encoding = null,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream"); // $NON-NLS-1
            }
            // TODO Use the encoding
            XmlReader xr = XmlReader.Create(stream);
            var       fs = stream as FileStream;

            if (fs != null)
            {
                return(new PropertyTreeXmlReader(xr, new Uri("file://" + fs.Name)));
            }

            return(new PropertyTreeXmlReader(xr, null));
        }
        public static PropertyTreeXmlReader CreateXml(Stream stream,
                                                      Encoding encoding = null,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            if (stream == null)
                throw new ArgumentNullException("stream"); // $NON-NLS-1

            // TODO Use the encoding
            XmlReader xr = XmlReader.Create(stream);
            return new PropertyTreeXmlReader(xr);
        }
        public static PropertyTreeXmlReader CreateXml(StreamContext streamContext,
                                                      Encoding encoding = null,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            if (streamContext == null)
                throw new ArgumentNullException("streamContext"); // $NON-NLS-1

            XmlReaderSettings xsettings = new XmlReaderSettings {};
            // TODO Use the encoding
            XmlReader xr = XmlReader.Create(streamContext.OpenRead(), xsettings);
            return new PropertyTreeXmlReader(xr);
        }
        public static PropertyTreeXmlReader CreateXml(TextReader reader,
                                                      PropertyTreeXmlReaderSettings settings = null)
        {
            if (reader == null)
                throw new ArgumentNullException("reader"); // $NON-NLS-1

            XmlReader xr = XmlReader.Create(reader);
            return new PropertyTreeXmlReader(xr);
        }
 public static PropertyTreeXmlReader Create(XmlReader inputReader, PropertyTreeXmlReaderSettings settings = null)
 {
     return(PropertyTreeReader.CreateXml(inputReader, settings));
 }
 public static PropertyTreeXmlReader Create(Stream inputStream, Encoding encoding = null, PropertyTreeXmlReaderSettings settings = null)
 {
     return(PropertyTreeReader.CreateXml(inputStream, encoding, settings));
 }
 public static PropertyTreeXmlReader Create(string inputFileName, Encoding encoding = null, PropertyTreeXmlReaderSettings settings = null)
 {
     return(PropertyTreeReader.CreateXml(inputFileName, encoding, settings));
 }
 public static PropertyTreeXmlReader Create(XmlReader inputReader, PropertyTreeXmlReaderSettings settings = null)
 {
     return PropertyTreeReader.CreateXml(inputReader, settings);
 }
 public static PropertyTreeXmlReader Create(Stream inputStream, Encoding encoding = null, PropertyTreeXmlReaderSettings settings = null)
 {
     return PropertyTreeReader.CreateXml(inputStream, encoding, settings);
 }
 public static PropertyTreeXmlReader Create(string inputFileName, Encoding encoding = null, PropertyTreeXmlReaderSettings settings = null)
 {
     return PropertyTreeReader.CreateXml(inputFileName, encoding, settings);
 }