XmlReaderSettings .net 2.0?

  • Thread starter Thread starter ba.hons
  • Start date Start date
B

ba.hons

Hi

I have been tring to use some of the following classes which are new in
..net version 2 from what i have read on the MSDN the following should
be supported

XmlReaderSettings settings = new XmlReaderSettings();

AND

XmlReader rdr = XmlReader.Create("books.xml", settings);

Bue i get the following errors

The type or namespace name 'XmlReaderSettings' could not be found (are
you missing a using directive or an assembly reference?)

I downloaded the new SDK but do i need to change a setting in my visual
studio so i use the new dll's??

Thanks

Adam
 
Hello ba.hons,

Have u include reference to System.Xml.dll and add using System.Xml?

---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

b> Hi
b>
b> I have been tring to use some of the following classes which are new
b> in .net version 2 from what i have read on the MSDN the following
b> should be supported
b>
b> XmlReaderSettings settings = new XmlReaderSettings();
b>
b> AND
b>
b> XmlReader rdr = XmlReader.Create("books.xml", settings);
b>
b> Bue i get the following errors
b>
b> The type or namespace name 'XmlReaderSettings' could not be found
b> (are you missing a using directive or an assembly reference?)
b>
b> I downloaded the new SDK but do i need to change a setting in my
b> visual studio so i use the new dll's??
b>
b> Thanks
b>
b> Adam
b>
 
ba.hons said:
XmlReaderSettings settings = new XmlReaderSettings();

AND

XmlReader rdr = XmlReader.Create("books.xml", settings);

Bue i get the following errors

The type or namespace name 'XmlReaderSettings' could not be found (are
you missing a using directive or an assembly reference?)

Visual Studio 2005 supports .NET 2.0, there all you need is a using
directive e.g.

using System.Xml;
 
Back
Top