Last post Sep 20, 2011 07:43 AM by purplepint
Sep 20, 2011 07:18 AM|purplepint|LINK
This example actually comes from a book I am reading - so you would have thought it should work!
However, I get too many arguements specified (for the XMLDataReader) ... maybe someone could shed some light on where it may be going wrong.
Dim XMLFile As String = Server.MapPath("DVDList")
Dim reader As New XMLTextReader(XMLFile)
Sep 20, 2011 07:37 AM|chandrashekar|LINK
I dont see any issues with accessing the xml data using the XMLTextReader I have used the following code.
Dim reader1 As New System.Xml.XmlTextReader(Server.MapPath("testfile.xml"))
Dim str As String
str = reader1.ReadOuterXml()
Sep 20, 2011 07:43 AM|purplepint|LINK
Nice one - I had imported System.Xml but that didn't want to work, but doing it your way has worked!