|
Subject:
|
.ReadValueAsDecimal for XMLReader
|
|
Posted By:
|
mconti
|
Post Date:
|
5/26/2006 9:17:00 AM
|
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.
|
|
Reply By:
|
corradWrrox
|
Reply Date:
|
6/6/2006 9:27:57 AM
|
settings.ValidationFlags = System.Xml.Schema.XmlSchemaValidationFlags.None;
maybe in beta release of vs2005 the property was different.
|
|
Reply By:
|
mconti
|
Reply Date:
|
6/8/2006 2:00:50 AM
|
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 ?
|
|
Reply By:
|
kmurray
|
Reply Date:
|
8/21/2006 11:44:51 AM
|
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.
|