Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > BOOK: Professional C# 2005
|
BOOK: Professional C# 2005
This is the forum to discuss the Wrox book Professional C# 2005 by Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones; ISBN: 9780764575341
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2006, 09:17 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default .ReadValueAsDecimal for XMLReader

Hello,

When i try to compile the 'XMLReaderSample' sample of the book (chapter 22), i got the following errors:

1)'System.Xml.XmlReader' does not contain a definition for 'ReadValueAsDecimal'.
2)'System.Xml.XmlReader' does not contain a definition for 'ReadValueAsString'.
3)'System.Xml.XmlReaderSettings' does not contain a definition for 'XsdValidate'.
4)'System.Windows.Forms.Application' does not contain a definition for 'EnableRTLMirroring'.


So I can't compile it.

I tried to search the method 'ReadValueAsDecimal' in the MSDN web site and in the help of Visual Studio 2005 with 0 result. :-|

What's wrong ?
How can i fix these problems ?
Or where i can find this sample that works ?

Regards.

 
Old June 6th, 2006, 09:27 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

settings.ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.None;

maybe in beta release of vs2005 the property was different.

 
Old June 8th, 2006, 02:00 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your answer,
but the problem is that the program doesn't compile.

Using the following:
settings.ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.None;

As you suggested, would have a run time effect, not a copile time effect. I tryed and i got the same above errors. :-(

For sure the beta version was different.

Nobody knows how to fix this ?



 
Old August 21st, 2006, 11:44 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For button5_click use:
  ReadElementContentAsDecimal and ReadElementContentAsString

For button8_click:
  I commented out the XsdValidate

For the program.cs
   Application.EnableRTLMirroring is obsolete from what I have found.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.