473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

XmlReaderSettings .net 2.0?

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

Jan 22 '07 #1
2 3118
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

bHi
b>
bI have been tring to use some of the following classes which are new
bin .net version 2 from what i have read on the MSDN the following
bshould be supported
b>
bXmlReaderSettings settings = new XmlReaderSettings();
b>
bAND
b>
bXmlReader rdr = XmlReader.Create("books.xml", settings);
b>
bBue i get the following errors
b>
bThe type or namespace name 'XmlReaderSettings' could not be found
b(are you missing a using directive or an assembly reference?)
b>
bI downloaded the new SDK but do i need to change a setting in my
bvisual studio so i use the new dll's??
b>
bThanks
b>
bAdam
b>
Jan 22 '07 #2
ba.hons wrote:
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;
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pawel.pabich | last post by:
Hajo, I want to validate xml against DTD but I am not able to load DTD schema. My code looks like that: XmlReaderSettings settings = new XmlReaderSettings(); settings.ProhibitDtd = false;...
1
by: peter.moss | last post by:
I have an XML schema and I am trying to validate any XML document sent against it. Here's some of the code: XmlReaderSettings xmlReaderSettings = new XmlReaderSettings(); ...
0
by: Jen | last post by:
My main question: "How can I get a TextReader or Stream object from an existing XmlReader?". Read on for more: I have an existing XmlReader. Let's call it reader1. I'm creating another reader,...
1
by: Mac | last post by:
I'm trying to validate input from an xml source to a dataset in dotnet2.0. As far as I can see, type errors correctly cause an exception, but values that are the correct type but do not satisify...
0
by: Simon Ovens | last post by:
Hi im trying to read a news feed that is generated from an aspx page on my server but it comes up with and unauthrised error. I have changed the perimssions on the aspx news feed generator to no...
2
by: Techno_Dex | last post by:
I have an issue with the EventHandler for the XmlReaderSettings object being called twice during validation and I'm a little stumpped as to why. The error message being given is the same error...
2
by: pnmcosta | last post by:
Hi, I'm fairly new to XML Schema validation. We have XML being imported that must validate against the following schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" ...
4
by: Daniel S | last post by:
Hi, Here's my problem code: .... XmlReaderSettings settings = new XmlReaderSettings(); settings.ConformanceLevel = ConformanceLevel.Document; settings.CheckCharacters = false;...
1
by: TonyHallett | last post by:
Hi All. The documentation states "Setting CheckCharacters to false turns off character checking for character entity references." I seem to be missing the point on this. Please can someone...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.