11 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
14 private XmlTextReaderImpl impl;
34 public override string Name => impl.Name;
46 public override string Prefix => impl.Prefix;
51 public override bool HasValue => impl.HasValue;
73 public override string Value => impl.Value;
77 public override int Depth => impl.Depth;
81 public override string BaseURI => impl.BaseURI;
102 public override string XmlLang => impl.XmlLang;
111 public override bool EOF => impl.EOF;
152 return impl.Namespaces;
156 impl.Namespaces = value;
168 return impl.Normalization;
172 impl.Normalization = value;
188 return impl.WhitespaceHandling;
192 impl.WhitespaceHandling = value;
199 [Obsolete(
"Use DtdProcessing property instead.")]
218 return impl.DtdProcessing;
222 impl.DtdProcessing = value;
232 return impl.EntityHandling;
236 impl.EntityHandling = value;
246 impl.XmlResolver = value;
250 internal XmlTextReaderImpl Impl => impl;
254 internal bool XmlValidatingReaderCompatibilityMode
258 impl.XmlValidatingReaderCompatibilityMode = value;
262 internal override IDtdInfo DtdInfo => impl.DtdInfo;
267 impl =
new XmlTextReaderImpl();
268 impl.OuterReader =
this;
275 impl =
new XmlTextReaderImpl(nt);
276 impl.OuterReader =
this;
285 impl =
new XmlTextReaderImpl(input);
286 impl.OuterReader =
this;
296 impl =
new XmlTextReaderImpl(url, input);
297 impl.OuterReader =
this;
306 impl =
new XmlTextReaderImpl(input, nt);
307 impl.OuterReader =
this;
317 impl =
new XmlTextReaderImpl(url, input, nt);
318 impl.OuterReader =
this;
325 impl =
new XmlTextReaderImpl(input);
326 impl.OuterReader =
this;
334 impl =
new XmlTextReaderImpl(url, input);
335 impl.OuterReader =
this;
344 impl =
new XmlTextReaderImpl(input, nt);
345 impl.OuterReader =
this;
355 impl =
new XmlTextReaderImpl(url, input, nt);
356 impl.OuterReader =
this;
369 impl =
new XmlTextReaderImpl(xmlFragment, fragType, context);
370 impl.OuterReader =
this;
383 impl =
new XmlTextReaderImpl(xmlFragment, fragType, context);
384 impl.OuterReader =
this;
398 impl =
new XmlTextReaderImpl(url,
new NameTable());
399 impl.OuterReader =
this;
415 impl =
new XmlTextReaderImpl(url, nt);
416 impl.OuterReader =
this;
424 return impl.GetAttribute(name);
431 public override string GetAttribute(
string localName,
string namespaceURI)
433 return impl.GetAttribute(localName, namespaceURI);
442 return impl.GetAttribute(i);
451 return impl.MoveToAttribute(name);
461 return impl.MoveToAttribute(localName, namespaceURI);
469 impl.MoveToAttribute(i);
477 return impl.MoveToFirstAttribute();
485 return impl.MoveToNextAttribute();
493 return impl.MoveToElement();
502 return impl.ReadAttributeValue();
532 string text = impl.LookupNamespace(prefix);
533 if (text !=
null && text.Length == 0)
543 impl.ResolveEntity();
557 return impl.ReadContentAsBase64(buffer, index, count);
573 return impl.ReadElementContentAsBase64(buffer, index, count);
588 return impl.ReadContentAsBinHex(buffer, index, count);
604 return impl.ReadElementContentAsBinHex(buffer, index, count);
614 impl.MoveOffEntityReference();
615 return base.ReadString();
631 return impl.GetNamespacesInScope(scope);
637 string IXmlNamespaceResolver.LookupNamespace(
string prefix)
639 return impl.LookupNamespace(prefix);
645 string IXmlNamespaceResolver.LookupPrefix(
string namespaceName)
647 return impl.LookupPrefix(namespaceName);
655 return impl.GetNamespacesInScope(scope);
670 return impl.GetRemainder();
684 public int ReadChars(
char[] buffer,
int index,
int count)
686 return impl.ReadChars(buffer, index, count);
700 return impl.ReadBase64(array, offset, len);
714 return impl.ReadBinHex(array, offset, len);
Represents a character encoding.To browse the .NET Framework source code for this type,...
NameTable()
Initializes a new instance of the NameTable class.
Provides an interface to enable a class to return line and position information.
XmlTextReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified stream,...
override string NamespaceURI
Gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reade...
XmlTextReader(string url, TextReader input, XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified URL,...
TextReader GetRemainder()
Gets the remainder of the buffered XML.
void ResetState()
Resets the state of the reader to ReadState.Initial.
bool? ProhibitDtd
Gets or sets a value indicating whether to allow DTD processing. This property is obsolete....
override string LookupNamespace(string prefix)
Resolves a namespace prefix in the current element's scope.
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
Gets a collection that contains all namespaces currently in-scope.
override XmlNodeType NodeType
Gets the type of the current node.
EditorBrowsableState
Specifies the browsable state of a property or method from within an editor.
override char QuoteChar
Gets the quotation mark character used to enclose the value of an attribute node.
override XmlNameTable NameTable
Gets the T:System.Xml.XmlNameTable associated with this implementation.
override int Depth
Gets the depth of the current node in the XML document.
override string ReadString()
Reads the contents of an element or a text node as a string.
Resolves external XML resources named by a Uniform Resource Identifier (URI).
bool Normalization
Gets or sets a value indicating whether to normalize white space and attribute values.
override string Name
Gets the qualified name of the current node.
override bool MoveToFirstAttribute()
Moves to the first attribute.
XmlNodeType
Specifies the type of node.
EntityHandling
Specifies how the T:System.Xml.XmlTextReader or T:System.Xml.XmlValidatingReader handle entities.
override bool ReadAttributeValue()
Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.
WhitespaceHandling
Specifies how white space is handled.
XmlTextReader(string url, Stream input)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified URL and stream.
Provides all the context information required by the T:System.Xml.XmlReader to parse an XML fragment.
Represents a reader that provides fast, non-cached, forward-only access to XML data....
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
Reads the element and decodes the BinHex content.
override string Value
Gets the text value of the current node.
XmlNamespaceScope
Defines the namespace scope.
XmlTextReader(Stream input, XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified stream and T:Sy...
Represents a reader that provides fast, noncached, forward-only access to XML data....
int ReadBinHex(byte[] array, int offset, int len)
Decodes BinHex and returns the decoded binary bytes.
override bool CanResolveEntity
Gets a value indicating whether this reader can parse and resolve entities.
XmlTextReader()
Initializes a new instance of the XmlTextReader.
override bool MoveToAttribute(string localName, string namespaceURI)
Moves to the attribute with the specified local name and namespace URI.
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
Gets a collection of defined prefix-namespace mappings that are currently in scope.
SecurityAction
Specifies the security actions that can be performed using declarative security.
override void MoveToAttribute(int i)
Moves to the attribute with the specified index.
Implements a single-threaded T:System.Xml.XmlNameTable.
override string GetAttribute(int i)
Gets the value of the attribute with the specified index.
override bool MoveToAttribute(string name)
Moves to the attribute with the specified name.
XmlTextReader(TextReader input)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified T:System....
override int AttributeCount
Gets the number of attributes on the current node.
XmlTextReader(TextReader input, XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified T:System....
override string GetAttribute(string localName, string namespaceURI)
Gets the value of the attribute with the specified local name and namespace URI.
override string Prefix
Gets the namespace prefix associated with the current node.
XmlTextReader(string url, TextReader input)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified URL and T:Syste...
XmlTextReader(XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified T:System....
Resolves, adds, and removes namespaces to a collection and provides scope management for these namesp...
override void Skip()
Skips the children of the current node.
override string GetAttribute(string name)
Gets the value of the attribute with the specified name.
XmlTextReader(string url, XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified file and T:Syst...
int ReadBase64(byte[] array, int offset, int len)
Decodes Base64 and returns the decoded binary bytes.
int ReadChars(char[] buffer, int index, int count)
Reads the text contents of an element into a character buffer. This method is designed to read large ...
XmlTextReader(string url, Stream input, XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified URL,...
override void Close()
Changes the P:System.Xml.XmlReader.ReadState to Closed.
Table of atomized string objects.
ReadState
Specifies the state of the reader.
override bool CanReadValueChunk
Gets a value indicating whether the T:System.Xml.XmlTextReader implements the M:System....
override bool IsEmptyElement
Gets a value indicating whether the current node is an empty element (for example,...
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
Reads the content and returns the BinHex decoded binary bytes.
override string XmlLang
Gets the current xml:lang scope.
XmlTextReader(Stream input)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified stream.
override bool MoveToElement()
Moves to the element that contains the current attribute node.
override int ReadContentAsBase64(byte[] buffer, int index, int count)
Reads the content and returns the Base64 decoded binary bytes.
override void ResolveEntity()
Resolves the entity reference for EntityReference nodes.
override bool HasValue
Gets a value indicating whether the current node can have a P:System.Xml.XmlTextReader....
bool HasLineInfo()
Gets a value indicating whether the class can return line information.
Represents a reader that can read a sequential series of characters.
Provides read-only access to a set of prefix and namespace mappings.
override bool Read()
Reads the next node from the stream.
XmlTextReader(string xmlFragment, XmlNodeType fragType, XmlParserContext context)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified string,...
override bool CanReadBinaryContent
Gets a value indicating whether the T:System.Xml.XmlTextReader implements the binary content read met...
int LinePosition
Gets the current line position.
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
Reads the element and decodes the Base64 content.
DtdProcessing
Specifies the options for processing DTDs. The T:System.Xml.DtdProcessing enumeration is used by the ...
override bool EOF
Gets a value indicating whether the reader is positioned at the end of the stream.
override string BaseURI
Gets the base URI of the current node.
Encoding()
Initializes a new instance of the T:System.Text.Encoding class.
XmlSpace
Specifies the current xml:space scope.
int LineNumber
Gets the current line number.
override bool IsDefault
Gets a value indicating whether the current node is an attribute that was generated from the default ...
override string LocalName
Gets the local name of the current node.
bool Namespaces
Gets or sets a value indicating whether to do namespace support.
XmlTextReader(string url)
Initializes a new instance of the T:System.Xml.XmlTextReader class with the specified file.
override bool MoveToNextAttribute()
Moves to the next attribute.
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....