Results 1 to 3 of 3

Thread: XML Reader

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    32

    XML Reader

    Why is this not possible :

    Dim objXmlReader As XmlTextReader()
    objXmlReader = New XmlTextReader("Filename")

    but this is:
    Dim objXmlReader As XmlTextReader = New XmlTextReader("Filename")

  2. #2
    Member
    Join Date
    May 2001
    Location
    Adelaide, Australia
    Posts
    51

    Re: XML Reader

    Originally posted by Josch
    Why is this not possible :

    Dim objXmlReader As XmlTextReader()
    objXmlReader = New XmlTextReader("Filename")

    but this is:
    Dim objXmlReader As XmlTextReader = New XmlTextReader("Filename")
    In the first one, you're creating an array of XmlTextReaders... this should work:
    VB Code:
    1. Dim objXmlReader As XmlTextReader
    2. objXmlReader = New XmlTextReader("Filename")
    Matthew Draper
    [email protected]

    "Genius may have its limitations, but stupidity is not thus handicapped." - Elbert Hubbard

    "I like long walks, especially when they are taken by people who annoy me." - Noel Coward

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    32

    Re: Re: XML Reader

    You are right, sorry for that stupit mistake.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width