XmlReaderSettings .net 2.0?

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
 
M

Michael Nemtsev

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>
 
M

Martin Honnen

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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top