Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 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
  #1 (permalink)  
Old June 15th, 2005, 05:01 PM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 19 Address List problem

First, I'd like to thank the authors for providing me with the first truly helpful text on working directly with XML data files.

I got almost all the way through the exercises when I threw an exception in the Address List. I get the following error: "Add failed. Duplicate key value supplied."

Visual Studio is telling me that, in the Case XmlNodeType.Text section, addressData and elementName are being used before they have been assigned values. I thought those values were assigned in the preceding Case XmlNodeType.Element section.

I tried pasting in the downloaded project code to theses sections, in case my copying skills are lacking, but it didn't help. Can anyone clue me in on what I might be doing wrong or not seeing?

Thanks in advance for any assistance.

  #2 (permalink)  
Old June 15th, 2005, 05:21 PM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. I'm stupid. I kept typing in "Addresses" instead of "Address". That fixed, I no longer throw an exception.

However, I now have a different problem. Instead of getting 3 different items in the Address list (one for each of the 3 items in my XML document), i get the same item listed 3 times.

I'm more confused than ever.

Please help.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 19 johanyu BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 November 12th, 2007 10:50 AM
Chapter 19 Address List tfackler BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 October 12th, 2006 10:31 AM
Chapter 19 Exercise CharlieChan BOOK: Beginning Visual C++ 6 0 June 19th, 2005 05:15 PM
Chapter 19 johanyu BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 October 10th, 2004 11:30 PM
Problem with exercise in chapter 19 backslash BOOK: Beginning Visual C++ 6 4 September 5th, 2003 11:46 AM





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