System.Xml [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 To be added System.Xml.XmlReader Mono.Xml.IHasXmlParserContext System.Xml.IXmlLineInfo System.Xml.IXmlNamespaceResolver System.Obsolete("Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead.") XmlValidatingReader implements the class and provides support for data validation. Use the property to have the reader validate by using schema files that are cached in an . The property specifies what type of validation the reader should perform. Setting the property to ValidationType.None creates a non-validating reader. throws an on XML parse errors. After an exception is thrown the state of the reader is not predictable. For example, the reported node type may be different than the actual node type of the current node. Use the property to check whether a reader is in error state. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Represents a reader that provides document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. All nodes returned from the given XmlReader are also returned from this validating reader, so there is no information loss in the process. New nodes not returned from the underlying reader may be added by this reader (for example, default attributes and the children of an entity reference). Any properties set on the given XmlTextReader also apply to this validating reader. For example, if the supplied reader had WhitespaceHandling.None set, this validating reader also ignores white space. When external document type definitions (DTDs) or schemas are needed for validation, the property sets the object to use for resolving external resources. Initializes a new instance of the XmlValidatingReader class that validates the content returned from the given . The XmlReader to read from while validating. The current implementation supports only . Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This constructor parses the given string as a fragment of XML. If the XML fragment is an element or attribute, you can bypass the root level rules for well-formed XML documents. The following table lists valid values for and how the reader parses each of the different node types. XmlNodeType Fragment May Contain Element Any valid element content (for example, any combination of elements, comments, processing instructions, cdata, text, and entity references). Attribute The value of an attribute (the part inside the quotes). Document The contents of an entire XML document; this enforces document level rules. The reader uses the following steps to determine the encoding of the stream: Checks the property to determine the encoding. If the Encoding property is null, the reader checks for a byte-order mark at the beginning of the stream. If the Encoding property is null, and no byte-order mark is found, the reader assumes the stream is encoded in UTF-8. If this reader will be validating using document type definition (DTD) (that is, is set to ValidationType.DTD or ValidationType.Auto), the XmlParserContext specified in the constructor must supply all the necessary DocumentType information. It is not possible to validate a fragment by using a DTD. By definition a DTD requires an entire document to be loaded for validation. If this reader will be validating by using XML-Data Reduced (XDR) or XML Schema definition language (XSD) schemas, use the property to specify the that contains the schemas (that is, the XmlParserContext does not need to supply the DocumentType information). Initializes a new instance of the XmlValidatingReader class with the specified values. The stream containing the XML fragment to parse. The of the XML fragment. This determines what the fragment can contain (see table below). The in which the XML fragment is to be parsed. This includes the to use, encoding, namespace scope, current xml:lang, and xml:space scope. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This constructor parses the given string as a fragment of XML. If the XML fragment is an element or attribute, you can bypass the root level rules for well-formed XML documents. This constructor can handle strings returned from . The following table lists valid values for and how the reader parses each of the different node types. XmlNodeType Fragment May Contain Element Any valid element content (for example, any combination of elements, comments, processing instructions, cdata, text, and entity references). Attribute The value of an attribute (the part inside the quotes). Document The contents of an entire XML document; this enforces document level rules. If this reader will be validating by using document type definition (DTD) (that is, is set to ValidationType.DTD or ValidationType.Auto), the XmlParserContext specified in the constructor must supply all the necessary DocumentType information. It is not possible to validate a fragment by using DTD. By definition DTD requires an entire document to be loaded for validation. If this reader will be validating by using XML-Data Reduced (XDR) or XML Schema definition language (XSD) schemas, use the property to specify the that contains the schemas (the XmlParserContext does not need to supply the DocumentType information). Initializes a new instance of the XmlValidatingReader class with the specified values. The string containing the XML fragment to parse. The of the XML fragment. This also determines what the fragment string can contain (see table below). The in which the XML fragment is to be parsed. This includes the to use, encoding, namespace scope, current xml:lang, and xml:space scope. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Int32 To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property is relevant to Element, DocumentType, and XmlDeclaration nodes only. (Other node types do not have attributes.) Gets the number of attributes on the current node. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. A networked XML document is comprised of chunks of data aggregated by using various World Wide Web Consortium (W3C) standard inclusion mechanisms and therefore contains nodes that come from different places. document type definition (DTD) entities are an example of this, but this is not limited to DTDs. The base URI tells you where these nodes came from. If there is no base URI for the nodes being returned (for example, they were parsed from an in-memory string), String.Empty is returned. Gets the base URI of the current node. Property 2.0.0.0 4.0.0.0 System.Boolean To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. The binary content read methods include the , , , and methods. Gets a value indicating whether the implements the binary content read methods. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets a value indicating whether this reader can parse and resolve entities. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This method also releases any resources held while reading. If this reader was constructed by using an , this method also calls Close on the underlying reader. If this reader was constructed by using a stream, this method also calls Close on the underlying stream. If Close has already been called, no action is performed. Changes the to Closed. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Int32 To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the depth of the current node in the XML document. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Text.Encoding To be added: an object of type 'System.Text.Encoding' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. When any external reference is read (such as expanding an entity in a document type definition (DTD) file or reading a schema file) the encoding property is set to the encoding value of the external reference. If encoding is not specified in the external reference, and there is no byte-order mark, this defaults to UTF-8. All the encoding standards that the underlying operating system supports are supported. Gets the encoding attribute for the document. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.EntityHandling To be added: an object of type 'EntityHandling' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property can be changed and takes effect after the next call. When EntityHandling is set to ExpandCharEntities, attribute values are only partially normalized. The reader normalizes each individual text node independently from the content of adjacent entity reference nodes. To illustrate the difference between the entity handling modes consider the following XML: <!DOCTYPE doc [<!ENTITY num "123">]> <doc> &#65; &num; </doc> When EntityHandling is set to ExpandEntities the "doc" element node contains one text node with the expanded entity text: Depth NodeType Name Value 1 Text A 123 When EntityHandling is set to ExpandCharEntites, and is set to Significant or All, the "doc" element expands the character entity and returns the general entity as a node: Depth NodeType Name Value 1 Text A 1 EntityReference num 1 SignificantWhitespace Gets or sets a value that specifies how the reader handles entities. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets a value indicating whether the reader is positioned at the end of the stream. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.String This method does not move the reader. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the value of the attribute with the specified index. The value of the specified attribute. The index of the attribute. The index is zero-based. (The first attribute has index 0.) Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.String The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This method does not move the reader. If the reader is positioned on a DocumentType node, this method can be used to get the PUBLIC and SYSTEM literals, for example, reader.GetAttribute("PUBLIC") Gets the value of the attribute with the specified name. The value of the specified attribute. If the attribute is not found, null is returned. The qualified name of the attribute. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.String The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. The following XML contains an attribute in a specific namespace: <test xmlns:dt="urn:datatypes" dt:type="int"/> You can look up the dt:type attribute by using one argument (prefix and local name) or two arguments (local name and namespace URI): String dt = reader.GetAttribute("dt:type"); String dt2 = reader.GetAttribute("type","urn:datatypes"); To look up the xmlns:dt attribute, use one of the following arguments: String dt3 = reader.GetAttribute("xmlns:dt"); String dt4 = reader.GetAttribute("dt",http://www.w3.org/2000/xmlns/); You can also get this information by using the property. Gets the value of the attribute with the specified local name and namespace Uniform Resource Identifier (URI). The value of the specified attribute. If the attribute is not found, null is returned. This method does not move the reader. The local name of the attribute. The namespace URI of the attribute. Method 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets a value indicating whether the class can return line information. true if the class can return line information; otherwise, false. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. The following table lists node types that have a value to return. Node Type Value Attribute The value of the attribute. CDATA The content of the CDATA section. Comment The content of the comment. DocumentType The internal subset. ProcessingInstruction The entire content, excluding the target. SignificantWhitespace The white space between markup in a mixed content model. Text The content of the text node. Whitespace The white space between markup. XmlDeclaration The content of the declaration. Gets a value indicating whether the current node can have a other than String.Empty. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added. This property applies only to an attribute node. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets a value indicating whether the current node is an attribute that was generated from the default value defined in the document type definition (DTD) or schema. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property enables you to determine the difference between the following: <item num="123"/> (IsEmptyElement is true). <item num="123"> (IsEmptyElement is false, although element content is empty). A corresponding EndElement node is not generated for empty elements. If default content has been added to an element due to schema validation, IsEmptyElement still returns true. It has no bearing on whether or not the element has a default value. In other words, IsEmptyElement simply reports whether or not the element in the source document had an end element tag. Gets a value indicating whether the current node is an empty element (for example, <MyElement/>). Property System.String To be added. To be added. To be added. To be added. 1.0.5000.0 2.0.0.0 Property System.String To be added. To be added. To be added. To be added. 1.0.5000.0 2.0.0.0 Property System.String To be added. To be added. To be added. To be added. To be added. 1.0.5000.0 2.0.0.0 Property 2.0.0.0 4.0.0.0 System.Int32 To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property is most commonly used for error reporting, but can be called at any time. The starting value for this property is 1. Combined with , a value of 1,1 indicates the start of the document. Gets the current line number. Property 2.0.0.0 4.0.0.0 System.Int32 To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property is most commonly used for error reporting, but can be called at any time. The starting value for this property is 1. The position indicated is the first character of text in the markup. <root> abc<tag/> </root> On the first line of the preceding XML text, a LinePosition of 2 corresponds to the character r; on the second line, a LinePosition of 5 corresponds to the character t; and on the third line, a LinePosition of 3 corresponds to the character r. Combined with , a value of 1,1 indicates the start of the document. Gets the current line position. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the local name of the current node. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.String The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. In the following XML string, if the reader is positioned on the href attribute, the prefix a is resolved by calling reader.LookupNamespace("a", true). The returned string is urn:456. <root xmlns:a="urn:456"> <item> <ref href="a:b"/> </item> </root> Resolves a namespace prefix in the current element's scope. The namespace URI to which the prefix maps or null if no matching prefix is found. The prefix whose namespace Uniform Resource Identifier (URI) you want to resolve. To match the default namespace, pass an empty string. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlParserContext To be added. To be added. To be added. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Moves to the attribute with the specified index. The index of the attribute. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. After calling this method, the , , and properties reflect the properties of that attribute. Moves to the attribute with the specified name. true if the attribute is found; otherwise, false. If false, the position of the reader does not change. The qualified name of the attribute. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. After calling this method, the , , and properties reflect the properties of that attribute. Moves to the attribute with the specified local name and namespace Uniform Resource Identifier (URI). true if the attribute is found; otherwise, false. If false, the position of the reader does not change. The local name of the attribute. The namespace URI of the attribute. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Use this method to return to an element after navigating through its attributes. This method moves the reader to one of the following node types: Element, DocumentType, or XmlDeclaration. Moves to the element that contains the current attribute node. true if the reader is positioned on an attribute (the reader moves to the element that owns the attribute); false if the reader is not positioned on an attribute (the position of the reader does not change). Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Moves to the first attribute. true if an attribute exists (the reader moves to the first attribute); otherwise, false (the position of the reader does not change). Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. If the current node is an element node, this method is equivalent to . If MoveToNextAttribute returns true, the reader moves to the next attribute; otherwise, the position of the reader does not change. Moves to the next attribute. true if there is a next attribute; false if there are no more attributes. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the qualified name of the current node. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean To be added: an object of type 'bool' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets or sets a value indicating whether to do namespace support. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. This property is relevant to Element and Attribute nodes only. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the namespace Uniform Resource Identifier (URI) (as defined in the World Wide Web Consortium (W3C) Namespace specification) of the node on which the reader is positioned. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlNameTable To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. All node and attribute names returned from are atomized by using the NameTable. When the same name is returned multiple times (for example, Customer), the same String object will be returned for that name. This makes it possible for you to write efficient code that does object comparisons on these strings instead of expensive string comparisons. Gets the associated with this implementation. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlNodeType To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property never returns the following XmlNodeType types: Document, DocumentFragment, Entity, or Notation. Gets the type of the current node. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the namespace prefix associated with the current node. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Char To be added. This property applies only to an attribute node. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the quotation mark character used to enclose the value of an attribute node. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. When a reader is first created and initialized, there is no information available. You must call Read to read the first node. Reads the next node from the stream. true if the next node was read successfully; false if there are no more nodes to read. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Use this method after calling to read through the text or entity reference nodes that make up the attribute value. The of the attribute value nodes is one plus the depth of the attribute node. The Depth increments and decrements by one when you step into and out of general entity references. For example, suppose you have the following XML: <test name="a &b; c"/> where the entity b is defined in the document type definition (DTD) as follows: <!ENTITY b "123"> If is set to ExpandCharEntities, the following C# code returns the attribute value as two text nodes and one entity reference node: reader.MoveToAttribute("name"); while (reader.ReadAttributeValue()) { if (reader.NodeType == XmlNodeType.Text) { // at this point reader.Value == "a " or " c" } else if (reader.NodeType == XmlNodeType.EntityReference) { // at this point reader.Name == "b" reader.ResolveEntity(); while (reader.ReadAttributeValue() && reader.NodeType != XmlNodeType.EndEntity) { // reader.Value == "123" } } } Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes. true if there are nodes to return. false if the reader is not positioned on an attribute node when the initial call is made or if all the attribute values have been read. An empty attribute, such as, misc="", returns true with a single node with a value of String.Empty. Method 2.0.0.0 4.0.0.0 System.Int32 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This method streams the content, decodes the Base64 content, and returns the decoded binary bytes (for example, an inline Base64 encoded GIF image) into the buffer. This method can be called successively to read large streams of embedded text. For more information, see RFC 1521, "MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies". You can obtain RFCs from the Request for Comments Web site at http://www.rfc-editor.org. You should not access any of the reader properties between calls to the method until the method returns the value 0. This method has the following behavior: returns the value 0 when it has reached the end of the byte stream it was operating on. The reader is positioned on the first non-content node. If you ask for fewer, or the exact number, of bytes than are left in the stream, the reader remains in its current position. is not supported on the following XML node types: Element, XmlDeclaration, None, Document, DocumentType, Notation, Entity, and DocumentFragment. Reads the content and returns the Base64 decoded binary bytes. The number of bytes written to the buffer. The buffer into which to copy the resulting text. This value cannot be null. The offset into the buffer where to start copying the result. The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned from this method. Method 2.0.0.0 4.0.0.0 System.Int32 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This method streams the content, decodes the BinHex content, and returns the decoded binary bytes (for example, an inline BinHex encoded GIF image) into the buffer. This method can be called successively to read large streams of embedded text. You should not access any of the reader properties between calls to the method until the method returns the value 0. This method has the following behavior: returns the value 0 when it has reached the end of the byte stream it was operating on. The reader is positioned on the first non-content node. If you ask for fewer, or the exact number, of bytes than are left in the stream, the reader remains in its current position. is not supported on the following XML node types: Element, XmlDeclaration, None, Document, DocumentType, Notation, Entity, and DocumentFragment. Reads the content and returns the BinHex decoded binary bytes. The number of bytes written to the buffer. The buffer into which to copy the resulting text. This value cannot be null. The offset into the buffer where to start copying the result. The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned from this method. Method 2.0.0.0 4.0.0.0 System.Int32 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This method reads the element content, decodes it using Base64 encoding, and returns the decoded binary bytes (for example, an inline Base64 encoded GIF image) into the buffer. For more information, see RFC 1521, "MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Message Bodies". You can obtain RFCs from the Request for Comments Web site at http://www.rfc-editor.org. This method can read only simple-content elements. The element can contain text, white space, significant white space, CDATA sections, comments, and processing instructions. It can also contain entity references, which are automatically expanded. The element cannot have child elements. This method is very similar to the method except that it can be called only on element node types. If the value is higher than the number of bytes in the document, or if it is equal to the number of bytes in the document, the reads all the remaining bytes in the document and returns the number of bytes read. The next method call returns a zero and moves the reader to the node following the . If you call before all of the element content is consumed, the reader may behave as if the first content was consumed and then the method was called. This means that the reader will read all the text until the end element is encountered. It will then read the end tag node, read the next node, and then position itself on the next subsequent node. Reads the element and decodes the Base64 content. The number of bytes written to the buffer. The buffer into which to copy the resulting text. This value cannot be null. The offset into the buffer where to start copying the result. The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned from this method. Method 2.0.0.0 4.0.0.0 System.Int32 The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This method reads the element content, decodes it using BinHex encoding, and returns the decoded binary bytes (for example, an inline BinHex encoded GIF image) into the buffer. This method can read only simple-content elements. The element can contain text, white space, significant white space, CDATA sections, comments, and processing instructions. It can also contain entity references, which are automatically expanded. The element cannot have child elements. This method is very similar to the method except that it can be called only on element node types. If the value is higher than the number of bytes in the document, or if it is equal to the number of bytes in the document, the reads all the remaining bytes in the document and returns the number of bytes read. The next method call returns a zero and moves the reader to the node following the . If you call before all of the element content is consumed, the reader may behave as if the first content was consumed and then the method was called. This means that the reader will read all the text until the end element is encountered. It will then read the end tag node, read the next node, and then position itself on the next subsequent node. Reads the element and decodes the BinHex content. The number of bytes written to the buffer. The buffer into which to copy the resulting text. This value cannot be null. The offset into the buffer where to start copying the result. The maximum number of bytes to copy into the buffer. The actual number of bytes copied is returned from this method. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlReader To be added: an object of type 'XmlReader' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property allows the user to access properties specific to the supplied reader. It returns a typed XmlReader. The user should query for the type before casting. Changing the state of the returned reader (for example, calling one of the read methods) can lead to unpredictable results. Gets the used to construct this XmlValidatingReader. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.ReadState To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the state of the reader. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.String The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. If positioned on an element, ReadString concatenates all text, significant white space, white space, and CDATA section node types together and returns the concatenated data as the element content. The reader stops when any markup is encountered, including comments and processing instructions. This could occur in a mixed content model, or when an element end tag is read. If positioned on a text node, ReadString performs the same concatenation from the text node to the element end tag. If the reader is positioned on an attribute text node, ReadString has the same functionality as if the reader were position on the element start tag. It returns all the concatenated element text nodes. The property determines how ReadString works as follows: Value Description ExpandEntities Returns expanded character and general entities. This is the default. ExpandCharEntities Returns the text content up to but not including a general entity reference. This means a general entity causes ReadString to stop. You must call Read to step over the entity reference. Reads the contents of an element or text node as a string. The contents of the element or text node. This can be an empty string if the reader is positioned on something other than an element or text node, or if there is no more text content to return in the current context. The text node can be either an element or an attribute text node. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Object The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. For example, if the schema type is defined as xsd:int, the runtime type int32 is returned for the object. This can be tested using the method and cast accordingly. The method always returns a type that is derived from the class. It never returns the type. If the reader is positioned on an attribute, this method returns the runtime typed object, but does not change the position of the reader. If the reader is positioned on an element, ReadTypedValue reads any CDATA, text, white space, significant white space, and comment nodes, returns the runtime typed object and positions the reader on the end tag. Any types that do not have a direct mapping, for example NMTOKENS, are returned as strings. If has been set to ValidationType.None, data type information is not provided from either schemas or document type definitions (DTDs). After calling , ReadTypedValue will return null. Gets the common language runtime type for the specified XML Schema definition language (XSD) type. The common language runtime type for the specified XML Schema type. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. If the reader is positioned on an EntityReference node (XmlNodeType.EntityReference), if is called after calling this method, the entity replacement text is parsed. After the entity replacement text is finished, an EndEntity node is returned to close the entity reference scope. After calling this method, if the entity is part of an attribute value, you must call to step into the entity. Resolves the entity reference for EntityReference nodes. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.XmlSchemaCollection To be added: an object of type 'Schema.XmlSchemaCollection' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. The XmlSchemaCollection holds pre-loaded XML-Data Reduced (XDR) and XML Schema definition language (XSD) schemas. This property gives the reader access to the cache of schemas and allows it to validate without having to re-load schemas every time. The reader does not add anything to the XmlSchemaCollection. If the XmlSchemaCollection includes an XML schema (XSD) which contains include or import elements that reference other namespaces, the schemas for these other namespaces are loaded for validation purposes only. Unless these schemas were explicitly added to the schema collection, they will not be accessible using any of the collection methods or properties. For example, if the collection contains the schema file a.xsd, which contains a reference to the schema file b.xsd, you must add b.xsd to the schema collection before you can access it using any of the collection methods or properties. When the XmlSchemaCollection is accessed using the Schemas property, the method uses the specified by the property. The schemas must be added to the XmlSchemaCollection before the first Read call. For more information, refer to Validation of XML with XmlValidatingReader. Gets a to use for validation. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Object To be added: an object of type 'object' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. The user needs to test for the returned type. For example, object obj = vreader.SchemaType; if (obj is XmlSchemaType) { XmlSchemaType st = (XmlSchemaType)obj; // use XmlSchemaType object } if (obj is XmlSchemaDatatype) { XmlSchemaDatatype sd = (XmlSchemaDatatype)obj; Type vt = sd.ValueType; // use XmlSchemaDatatype object } If XML Schema validation is being performed, the XmlSchemaType or XmlSchemaDatatype corresponds to the current element being read. If document type definition (DTD validation) is being performed, this property returns null. XmlSchemaDatatype is returned if the current element, or attribute, is a simple type that can specify special validation constraints on the simple types, like min and max. XmlSchemaSimpleType is returned if the current element, or attribute, is a user defined simpleType. XmlSchemaComplexType is returned if the current element is a user defined complexType. This type cannot be returned by attributes. If has been set to ValidationType.None, no data type information is provided from either schemas or DTDs. After calling , SchemaType will return Null. Gets a schema type object. Property 2.0.0.0 4.0.0.0 System.Xml.XmlReaderSettings To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the object that was used to create this instance. Method System.Boolean To be added. Gets a value indicating whether the class can return line information. true if and can be provided; otherwise, false. 1.0.5000.0 Property System.Int32 To be added. To be added. To be added. 1.0.5000.0 Property System.Int32 To be added. To be added. To be added. 1.0.5000.0 Method 2.0.0.0 4.0.0.0 System.Collections.Generic.IDictionary<System.String,System.String> This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . An T:System.Collections.IDictionary object that identifies the namespaces in scope. An object that identifies the scope of the reader. Method 2.0.0.0 4.0.0.0 System.String To be added. This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface. For a description of this member, see . A string value that contains the namespace prefix that is associated with the . Event 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.Schema.ValidationEventHandler The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. These events occur during and only if a of DTD, XDR, Schema, or Auto is specified. If no event handler is provided, an is thrown on the first validation error (Severity is equal to XmlSeverityType.Error). If an element reports a validation error, the rest of the content model for that element is not validated, however, its children are validated. The reader only reports the first error for a given element. The callback handler can use the property to guarantee that an XML instance document is validated against a schema. The Severity property allows you to distinguish between validation errors (Severity is equal to XmlSeverityType.Error) that indicate a fatal error, and validation warnings (Severity is equal to XmlSeverityType.Warning) that indicate that no schema information is available. Sets an event handler for receiving information about document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) schema validation errors. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.ValidationType To be added: an object of type 'ValidationType' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property must be set before the first call to . Setting this property to ValidationType.None creates a non-validating reader. If external document type definitions (DTDs) or schemas are needed for validation, the is used. For more information, see Validation of XML with XmlValidatingReader and Validation Types of the XmlValidatingReader. Gets or sets a value indicating the type of validation to perform. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the text value of the current node. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. This property represents the xml:lang scope within which the current node resides. For example, here is an XML fragment with xml:lang set to U.S. English in the root element: <root xml:lang="en-us"> <name>Fred</name> </root> When the reader is positioned on the name element, you can use this property to find that it is in the scope of a U.S. English xml:lang attribute. Gets the current xml:lang scope. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlResolver To be added: an object of type 'XmlResolver' The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. The XmlResolver is used to load any DTDs, entities, or schemas needed to complete the validation process. This property can be set at any time and takes affect after the next call. If this property is set to null, the reader assumes the user is not interested in resolving external references. In this case, the reader only validates against internal resources, if the resource is present. In version 1.1 of dnprdnshort , if this property is not set, the trust level of the application determines the default behavior. Fully trusted code: The reader uses a default with no user credentials. If authentication is required to access a network resource, use the XmlResolver property to specify an XmlResolver with the necessary credentials. Semi-trusted code: The XmlResolver property is set to null. External resources are not resolved. When validating using schemas, you can avoid the expensive load process by providing an using the property. Sets the used for resolving external document type definition (DTD) and schema location references. The XmlResolver is also used to handle any import or include elements found in XML Schema definition language (XSD) schemas. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.Xml.XmlSpace To be added. The class is obsolete in dnprdnext. You can create a validating instance by using the class and the method. For more information, see Validating XML Data with XmlReader. Gets the current xml:space scope.