Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > Wrox Book Feedback
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Wrox Book Feedback A forum to submit feedback on Wrox books if other forums on P2P have been unable to address your book-specific needs. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Wrox Book Feedback section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 1st, 2003, 03:18 AM
Registered User
 
Join Date: Jul 2003
Location: shenzhen, guangdong, China.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crystallac
Default error cs0234-come from the example of a wrox book

Hello:

// C#Example01.cs
using System;
using System.Xml;   //my marker: error cs0234 ÐÐ
using System.Text;
using System.IO;

namespace myApp
{
  class mainClass
  {
    static void Main(string[] args)
    {
      FileStream myFile = new FileStream("test.xml", FileMode.Open);
      XmlTextReader myReader = new XmlTextReader(myFile);
      Console.Write("{0,-20}{1,-20}{2,-20}\n", "Type", "Name", "Value");
      Console.Write("{0,-20}{1,-20}{2,-20}\n", "--------------------",
                    "--------------------", "--------------------");
      while(myReader.Read())
        Console.Write("{0,-20}{1,-20}{2,-20}\n",
                      myReader.NodeType.ToString(),
                      myReader.Name, myReader.Value);
      myReader.Close();
      myFile.Close();
    }
  }
}

//test.xml
<?xml version="1.0"?>
<customer>
&nbsp;&nbsp;&nbsp;<name>Alfred Q. Anybody</name>
&nbsp;&nbsp;&nbsp;<address>123 Anywhere Road</address>
&nbsp;&nbsp;&nbsp;<city>Somewheretown</city>
&nbsp;&nbsp;&nbsp;<state>PA</state>
&nbsp;&nbsp;&nbsp;<postalCode>29374</postalCode>
</customer>

>csc Example01.cs&nbsp;&nbsp;
error cs0234 ...

Example01.cs and test.xml is in the same fold.
why? please.
Reply With Quote
  #2 (permalink)  
Old August 1st, 2003, 03:43 AM
Registered User
 
Join Date: Jul 2003
Location: shenzhen, guangdong, China.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crystallac
Default

Hello:
     the correct result is below:

          csc /reference:System.Xml.dll Example01.cs

Reply With Quote
  #3 (permalink)  
Old August 1st, 2003, 07:55 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

As explained in This Topic. This is a forum for FEEDBACK about wrox books.

Please post your book specific question in the appropriate forum that relates to that book. If it's a book not listed post it in "Other Wrox Books" With the name of the book and Page number your talking about.





Hal Levy
Unemployed (Thanks GWB)
NOT a Wiley/Wrox Employee
Reply With Quote
  #4 (permalink)  
Old August 5th, 2003, 10:47 PM
Registered User
 
Join Date: Jul 2003
Location: shenzhen, guangdong, China.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crystallac
Default

Hi,Hal Levy:
   Thank you for your prompt£¡

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi Wrox! do you hava a book re... JakeSpeed Wrox Book Feedback 0 November 6th, 2006 10:28 AM
C# 2005 Wrox Book? pro-logic C# 2005 3 October 14th, 2004 11:36 PM
i need to know the new edition of wrox book toon Wrox Book Feedback 1 September 23rd, 2004 01:05 AM
Any book about WebSearchEngine pressed by wrox? KevinOcean Wrox Book Feedback 6 June 25th, 2004 08:43 AM
Read first!!!: Where is the code for a Wrox book jminatel All Other Wrox Books 0 March 17th, 2004 04:43 PM



All times are GMT -4. The time now is 01:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.