R
Rob Meade
Hi all,
I'm having a few difficulties with the above, ie I cant find any good
examples anywhere of how to do what I want to do!
I have an xml file on my desktop which I want to read in.
Having checked the info for XML file reading it suggests that with .net 2.0
you should use the XMLReader class...
Ok - so down that road I went..it seems that I need to give this a Stream -
do you think I can work this out - nope...
So far I have this:
' delcare variables
Dim Stream As Stream
Dim XmlReader As XmlReader
' create a new instance of our object
XmlReader = XmlReader.Create(Stream)
I appreciate that some where between creating the new instance of the
XMLReader and declaring it I need to create a new steam and read in the XML
file - this is where I'm lost..
I keep going around in circles and keep stumbling across the StreamReader
class - but I dont see how this is any good to me as I cant pass the
StreamReader into the XmlReader object...
Any help with this would be appreciated..I had an example of how to do this
before with .net 1.0 - but it wasn't using the new XMLReader class (think it
might have been XMLTextReader or something instead)..
Regards
Rob
I'm having a few difficulties with the above, ie I cant find any good
examples anywhere of how to do what I want to do!
I have an xml file on my desktop which I want to read in.
Having checked the info for XML file reading it suggests that with .net 2.0
you should use the XMLReader class...
Ok - so down that road I went..it seems that I need to give this a Stream -
do you think I can work this out - nope...
So far I have this:
' delcare variables
Dim Stream As Stream
Dim XmlReader As XmlReader
' create a new instance of our object
XmlReader = XmlReader.Create(Stream)
I appreciate that some where between creating the new instance of the
XMLReader and declaring it I need to create a new steam and read in the XML
file - this is where I'm lost..
I keep going around in circles and keep stumbling across the StreamReader
class - but I dont see how this is any good to me as I cant pass the
StreamReader into the XmlReader object...
Any help with this would be appreciated..I had an example of how to do this
before with .net 1.0 - but it wasn't using the new XMLReader class (think it
might have been XMLTextReader or something instead)..
Regards
Rob