Creates a new XmlReader instance with the specified XmlReader and XmlReaderSettings objects. : XmlReader « XML « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » XML » XmlReader 




Creates a new XmlReader instance with the specified XmlReader and XmlReaderSettings objects.
 
Imports System
Imports System.IO
Imports System.Xml

Public Class Sample
  Public Shared Sub Main()
        Dim doc As New XmlDocument()
        doc.Load("books.xml")
        Dim nodeReader As New XmlNodeReader(doc)
        
        Dim settings As New XmlReaderSettings()
        settings.ValidationType = ValidationType.Schema
        settings.Schemas.Add("urn:bookstore-schema""books.xsd")

        Dim reader As XmlReader = XmlReader.Create(nodeReader, settings)

        While reader.Read()
        End While
    End Sub
End Class
        

   
  














Related examples in the same category
1.Loads the XML document from the specified XmlReader.
2.XmlParserContext Class has context information required by the XmlReader to parse an XML fragment.
3.XmlReader Class represents a reader that provides fast, non-cached, forward-only access to XML data.
4.XmlReader.AttributeCount gets the number of attributes on the current node.
5.XmlReader.Create Method creates a new XmlReader instance using the specified stream.
6.XmlReader.Create Method creates a new XmlReader instance with specified URI.
7.XmlReader.Create Method creates a new instance with the specified URI and XmlReaderSettings.
8.XmlReader.Create Method creates a new XmlReader instance.
9.Creates a new XmlReader instance with the specified TextReader.
10.XmlReader.GetAttribute gets the value of the attribute with the specified index.
11.XmlReader.GetAttribute Method gets the value of the attribute with the specified Name.
12.XmlReader.HasAttributes Property tells whether the current node has any attributes.
13.XmlReader.IsEmptyElement tells whether the current node is an empty element ().
14.XmlReader.Item gets the value of the attribute with the specified Name.
15.XmlReader.LocalName Property gets the local name of the current node.
16.XmlReader.MoveToAttribute Method moves to the attribute with the specified index.
17.XmlReader.MoveToFirstAttribute Method moves to the first attribute.
18.XmlReader.Name Property gets the qualified name of the current node.
19.XmlReader.ReadContentAs reads the content as an object of the type specified.
20.XmlReader.ReadContentAsBoolean reads the text content at the current position as a Boolean.
21.XmlReader.ReadElementContentAs Method reads the element content as the requested type.
22.XmlReader.ReadElementContentAsBase64 Method reads the element and decodes the Base64 content.
23.XmlReader.ReadElementContentAsBinHex Method reads the element and decodes the BinHex content.
24.XmlReader.ReadElementContentAsDateTime reads the current element and returns the contents as a DateTime object.
25.XmlReader.ReadElementContentAsObject
26.XmlReader.ReadElementContentAsString
27.XmlReader.ReadElementContentAsString
28.XmlReader.ReadElementString reads a text-only element.
29.XmlReader.ReadEndElement
30.XmlReader.ReadInnerXml
31.XmlReader.ReadOuterXml Method (System.Xml)_VB.htm
32.XmlReader.ReadSubtree
33.XmlReader.ReadToDescendant
34.XmlReader.ReadToNextSibling
35.XmlReader.Skip
36.XmlReaderSettings specifies a set of features to support on the XmlReader object created by the Create method.
37.XmlReaderSettings.XmlResolver sets the XmlResolver used to access external documents.
38.XmlWriter.WriteAttributes writes out all the attributes found at the current position in the XmlReader.
39.Creates a new sibling node after the currently selected node using the XML contents of the XmlReader object specified.
40.XPathNavigator.InsertBefore (XmlReader)
41.XPathNavigator.PrependChild (XmlReader)
42.XPathNavigator.ReadSubtree (System.Xml.XPath) returns XmlReader
43.XPathNavigator.ReplaceSelf (XmlReader) replaces the current node with the contents of the XmlReader object specified.
44.XDocument.Load (XmlReader) creates a new XDocument from an XmlReader.
45.XDocument.Load (XmlReader, LoadOptions) loads an XElement from an XmlReader, setting the base URI, and retaining line information.
46.XElement.Load (XmlReader) loads an XElement from an XmlReader.
47.XElement.Load (XmlReader, LoadOptions) loads an XElement from an XmlReader
48.XNode.CreateReader creates an XmlReader for this node.
49.Reads the current element and returns the contents as a double-precision floating-point number.
50.Reads the current element and returns the contents as a 64-bit signed integer.
51.A single-threaded XmlNameTable.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.