> I
> got the following 2 errors:
[quoted text clipped - 6 lines]
> Please help and tell me where I made mistakes and how to correct these 2
> errors.
> using namespace System;
> using namespace System::Xml
^^^
There the semicolon is missing, you need
using namespace System::Xml;
according to the error message.

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
SHC - 24 Apr 2005 19:39 GMT
Hi Martin, Thanks for your response.
I corrected the error and did the "Build" again. On the c:\ screen, I got
the following: Microsoft Development Environment
An unhandled exception of type 'System.Xml.XmlException'
occured
in system.xml.dll
Addtional Information: System error
|Break| |Continue|
I clicked on the |Continue| and I got the following:
"c:\Documents and Settings\Scott H. Chang\My Documents\Visual Studio
Projects\Q815658XMLRead.........
unhandled Excetion: System.Xml.XmlException:
The XML declaration is unexpected.
Line 1, position 4
at System.Xml.XmlTextReader.ParseTag<>
at System.Xml.XmlTextReader.ParseRoot<>
at System.Xml.XmlTextReaderRead<>
at main (Int32argc, SByte ** argv) in
c:\documents and
settings\.....\.....\q815658xmlread\q815658xml.cpp:line 17
The Line 17 in my .cpp program is "while (read->Read())".
I am new in VC++ .NET 2003 and XML programmming in VC++ .NET. I just have my
VC++ .NET 2003 installed and this "Q815658XMLRead" is my first XML
programming project. I need to tell you the following 2 things:
1) When I read the Microsoft Q815658:How to read the XML data from a file by
using Viusual C++ .NET, I saw the step #6: Add a reference to System.xml.dll
in the project and the additional information is in the article of the
Microsoft Knowledge Base: 310674 - How To Add reference to a managedVisual
C++ project. I read it, but I did not understand it and I did not do any
thing about the "reference" in my project.
2)In the original code lisiting, void _tmain(void) was used in my project. I
changed it to int _tmain(int argc, char* argv[]) - this is based on my
guessing!!!
Did 1) and 2) cause the problem in my project? Please hehp and advise me
how I can correct the problem and make the project working for me.
Many Thanks,
SHC
P. S. I itried to abort my "Build" process after 'Debug' and 'Break'. I
clicked on the
"Build" menu, I just saw 'Configuration Managert' only and I do not
know how
to abort this process now. Please advise on this matter also.