public XamlXmlParser(XmlReader xmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings) { if (xmlReader == null) { throw new ArgumentNullException("xmlReader"); } if (schemaContext == null) { throw new ArgumentNullException("schemaContext"); } sctx = schemaContext; this.settings = settings ?? new XamlXmlReaderSettings(); // filter out some nodes. var xrs = new XmlReaderSettings() { CloseInput = this.settings.CloseInput, IgnoreComments = true, IgnoreProcessingInstructions = true, IgnoreWhitespace = xmlReader.Settings.IgnoreWhitespace, }; r = XmlReader.Create(xmlReader, xrs); line_info = r as IXmlLineInfo; xaml_namespace_resolver = new NamespaceResolver(r as IXmlNamespaceResolver); }
public XamlXmlReaderSettings(XamlXmlReaderSettings settings) : base(settings) { var s = settings; if (s == null) { return; } CloseInput = s.CloseInput; SkipXmlCompatibilityProcessing = s.SkipXmlCompatibilityProcessing; XmlLang = s.XmlLang; XmlSpacePreserve = s.XmlSpacePreserve; }
public XamlXmlReader(Stream stream, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings) : this(XmlReader.Create(stream), schemaContext, settings) { }
public XamlXmlReader(XmlReader xmlReader, XamlXmlReaderSettings settings) : this(xmlReader, new XamlSchemaContext(null, null), settings) { }
public XamlXmlReader(string fileName, XamlXmlReaderSettings settings) : this(fileName, new XamlSchemaContext(null, null), settings) { }
public XamlXmlReader(Stream stream, XamlXmlReaderSettings settings) : this(stream, new XamlSchemaContext(null, null), settings) { }
public XamlXmlReader(XmlReader xmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings) { parser = new XamlXmlParser(xmlReader, schemaContext, settings); }
public XamlXmlReader(TextReader textReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings) : this(XmlReader.Create(textReader), schemaContext, settings) { }
public XamlXmlReader(string fileName, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings) : this(XmlReader.Create(fileName, file_reader_settings), schemaContext, settings) { }