public XmlValidatingReader([StringSyntax(StringSyntaxAttribute.Xml)] string xmlFragment, XmlNodeType fragType, XmlParserContext context) { ArgumentNullException.ThrowIfNull(xmlFragment); _impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); _impl.OuterReader = this; }
public XmlValidatingReader( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) { if (xmlFragment == null) { throw new ArgumentNullException("xmlFragment"); } impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); impl.OuterReader = this; }
public XmlValidatingReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context) { ArgumentNullException.ThrowIfNull(xmlFragment); _impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); _impl.OuterReader = this; }
public BaseValidator(XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling) { this.reader = reader; this.schemaCollection = schemaCollection; this.eventHandling = eventHandling; this.nameTable = reader.NameTable; this.positionInfo = System.Xml.PositionInfo.GetPositionInfo(reader); this.elementName = new XmlQualifiedName(); }
public XmlValidatingReader(string xmlFragment, XmlNodeType fragType, XmlParserContext context) { if (xmlFragment == null) { throw new ArgumentNullException(nameof(xmlFragment)); } _impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); _impl.OuterReader = this; }
public BaseValidator(XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling) { Debug.Assert(schemaCollection == null || schemaCollection.NameTable == reader.NameTable); this.reader = reader; this.schemaCollection = schemaCollection; this.eventHandling = eventHandling; nameTable = reader.NameTable; positionInfo = PositionInfo.GetPositionInfo(reader); elementName = new XmlQualifiedName(); }
public XmlValidatingReader(string xmlFragment, XmlNodeType fragType, XmlParserContext context) { if (xmlFragment == null) { throw new ArgumentNullException("xmlFragment"); } this.impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); this.impl.OuterReader = this; }
public XmlValidatingReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context) { if (xmlFragment == null) { throw new ArgumentNullException(nameof(xmlFragment)); } _impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); _impl.OuterReader = this; }
public BaseValidator(BaseValidator other) { reader = other.reader; schemaCollection = other.schemaCollection; eventHandling = other.eventHandling; nameTable = other.nameTable; schemaNames = other.schemaNames; positionInfo = other.positionInfo; xmlResolver = other.xmlResolver; baseUri = other.baseUri; elementName = other.elementName; }
public BaseValidator(BaseValidator other) { this.reader = other.reader; this.schemaCollection = other.schemaCollection; this.eventHandling = other.eventHandling; this.nameTable = other.nameTable; this.schemaNames = other.schemaNames; this.positionInfo = other.positionInfo; this.xmlResolver = other.xmlResolver; this.baseUri = other.baseUri; this.elementName = other.elementName; }
public BaseValidator(BaseValidator other) { reader = other.reader; _schemaCollection = other._schemaCollection; _eventHandling = other._eventHandling; _nameTable = other._nameTable; _schemaNames = other._schemaNames; _positionInfo = other._positionInfo; _xmlResolver = other._xmlResolver; _baseUri = other._baseUri; elementName = other.elementName; }
public static BaseValidator CreateInstance(ValidationType valType, XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling, bool processIdentityConstraints) { switch (valType) { case ValidationType.None: return new BaseValidator(reader, schemaCollection, eventHandling); case ValidationType.Auto: return new AutoValidator(reader, schemaCollection, eventHandling); case ValidationType.DTD: return new DtdValidator(reader, eventHandling, processIdentityConstraints); case ValidationType.XDR: return new XdrValidator(reader, schemaCollection, eventHandling); case ValidationType.Schema: return new XsdValidator(reader, schemaCollection, eventHandling); } return null; }
internal XsdValidator(XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling) : base(reader, schemaCollection, eventHandling) { this.startIDConstraint = -1; this.Init(); }
// // Constructors // public XmlValidatingReader(XmlReader reader) { _impl = new XmlValidatingReaderImpl(reader); _impl.OuterReader = this; }
public XmlValidatingReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context) { impl = new XmlValidatingReaderImpl(xmlFragment, fragType, context); impl.OuterReader = this; }
// Constructor internal ValidationEventHandling(XmlValidatingReaderImpl reader) { this.reader = reader; }
public XmlValidatingReader( Stream xmlFragment, XmlNodeType fragType, XmlParserContext context ) { impl = new XmlValidatingReaderImpl( xmlFragment, fragType, context ); impl.OuterReader = this; }
// // Constructors // public XmlValidatingReader( XmlReader reader ) { impl = new XmlValidatingReaderImpl( reader ); impl.OuterReader = this; }
internal XdrValidator(XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling) : base(reader, schemaCollection, eventHandling) { this.name = XmlQualifiedName.Empty; this.Init(); }
internal DtdValidator(XmlValidatingReaderImpl reader, IValidationEventHandling eventHandling, bool processIdentityConstraints) : base(reader, null, eventHandling) { this.name = XmlQualifiedName.Empty; this.processIdentityConstraints = processIdentityConstraints; this.Init(); }