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
|