Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 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 November 12th, 2007, 03:56 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 19 XML

I have a problem with the activity on Chapter 19 Visual Basic 2005 and XML.

When I run the project, the debugger highlights the line on the Load method of SerializableData: "serializer.Deserializer(stream)" and gives a message: "There is an error in XML Document (2,2)".

i go ahead and open the bin\debug folder and double-click on the AddressBook.xml:

<?xml version="1.0" ?>
- <doc>
- <assembly>
  <name>AddressBook</name>
  </assembly>
  <members />
  </doc>

however, when i try to run the exe file in the bin\debug folder, everything works as expected.

also, if i change the DataFilename to something else other than "AddressBook.xml", everything works correctly again.

could it be that there is a problem with the project being named as AddressBook and the xml file also named as AddressBook? are there any rules with namespaces when working with xml?

NOTE: project was supposed to be named Address Book (2 words)

Sample Project MyProject
Assembly Name: Address Book AddressBook
Root Namespace: Address_Book AddressBook





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 19 xml error flashmanTom Visual Basic 2005 Basics 0 February 9th, 2008 02:05 PM
Chapter 19 johanyu BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 November 12th, 2007 10:50 AM
Scripts for chapter 19 ValF BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 3 March 10th, 2006 12:03 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





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