![]() |
|
|
|||||||
![]() |
MCSD - Example codes with VB.NET working with XML doc required |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi,
I'm studying for 70-306 using the book "MCAD/MCSD Visual Basic .NET Windows Applications" published by McGraw Hill (ISBN: 0-07-212583-7). I found the book has no programming exercise provided about how VB.NET work with XML documents (certification objective 15.02). I'm now searching for some example source codes to assist my study. Could anyone also suggest me some useful online study resources ? Tks! lonelyplanet |
|
|
|
|
#2 |
|
Posts: n/a
|
I recommend starting here:
http://samples.gotdotnet.com/quickst...viewofXML.aspx This quickstart walks you through the main XML concepts. "lonelyplanet" wrote: > Hi, > > I'm studying for 70-306 using the book "MCAD/MCSD Visual Basic .NET > Windows Applications" published by McGraw Hill (ISBN: 0-07-212583-7). > > I found the book has no programming exercise provided about how VB.NET > work with XML documents (certification objective 15.02). I'm now > searching for some example source codes to assist my study. > > Could anyone also suggest me some useful online study resources ? > > Tks! > > =?Utf-8?B?U2NvdHQgU3dpZ2FydA==?= |
|
|
|
#3 |
|
Posts: n/a
|
Scott Swigart 寫é“:
> I recommend starting here: > > http://samples.gotdotnet.com/quickst...viewofXML.aspx > > This quickstart walks you through the main XML concepts. > > Tks Scott, I found one source code at below link showing how to Read XML from a file. http://samples.gotdotnet.com/quickst...eadXmlFile.src >From the source code, I expected the .vb file should be compiled as a console application so I tried to compile it with vbc.exe. Before calling vbc.exe. I ran below .bat file, too path "d:\program files\microsoft visual studio .net\frameworksdk\bin"; "d:\windows\microsoft.net\framework\v1.0.3705" %PATH% However, as I executed below command at DOS prompt, below error messages was printed out: ================================================== ======== Microsoft (R) Visual Basic .NET Compiler version 7.00.9466 for Microsoft (R) .NET Framework version 1.00.3705 Copyright (C) Microsoft Corporation 1987-2001. All rights reserved. vbc : error BC30420: 'Sub Main' was not found in 'ReadXmlFileSample'. D:\VB\XMLDoc\ReadXmlFile.vb(4) : error BC30466: Namespace or type 'Xml' for the Imports 'System.Xml' cannot be found. Imports System.Xml ~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(20) : error BC30002: Type 'XmlTextReader' is not defined. Dim reader as XmlTextReader = nothing ~~~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(25) : error BC30002: Type 'XmlTextReader' is not defined. reader = new XmlTextReader (args) ~~~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(49) : error BC30002: Type 'XmlTextReader' is not defined. private shared Sub FormatXml (reader as XmlTextReader, filename as String) ~~~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(5 not declared. case XmlNodeType.XmlDeclaration: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(62) : error BC30451: Name 'XmlNodeType' is not declared. case XmlNodeType.ProcessingInstruction: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(66) : error BC30451: Name 'XmlNodeType' is not declared. case XmlNodeType.DocumentType: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(70) : error BC30451: Name 'XmlNodeType' is not declared. case XmlNodeType.Comment: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(74) : error BC30451: Name 'XmlNodeType' is not declared. case XmlNodeType.Element: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(81) : error BC30451: Name 'XmlNodeType' is not declared. case XmlNodeType.Text: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(85) : error BC30451: Name 'XmlNodeType' is not declared. case XmlNodeType.Whitespace: ~~~~~~~~~~~ D:\VB\XMLDoc\ReadXmlFile.vb(106) : error BC30002: Type 'XmlTextReader' is not defined. private shared Sub Format(byref reader as XmlTextReader , nodeType as String) ~~~~~~~~~~~~~ What have I missed ? Do I call vbc correctly ? lonelyplanet |
|
|
|
#4 |
|
Posts: n/a
|
I sent you an e-mail with a Visual Studio project that will compile.
"lonelyplanet" wrote: > Scott Swigart 寫é“: > > > I recommend starting here: > > > > http://samples.gotdotnet.com/quickst...viewofXML.aspx > > > > This quickstart walks you through the main XML concepts. > > > > > > Tks Scott, > > I found one source code at below link showing how to Read XML from a > file. > > http://samples.gotdotnet.com/quickst...eadXmlFile.src > > >From the source code, I expected the .vb file should be compiled as a > console application so I tried to compile it with vbc.exe. > > Before calling vbc.exe. I ran below .bat file, too > > path "d:\program files\microsoft visual studio .net\frameworksdk\bin"; > "d:\windows\microsoft.net\framework\v1.0.3705" %PATH% > > However, as I executed below command at DOS prompt, below error > messages was printed out: > > ================================================== ======== > > Microsoft (R) Visual Basic .NET Compiler version 7.00.9466 > for Microsoft (R) .NET Framework version 1.00.3705 > Copyright (C) Microsoft Corporation 1987-2001. All rights reserved. > > vbc : error BC30420: 'Sub Main' was not found in 'ReadXmlFileSample'. > D:\VB\XMLDoc\ReadXmlFile.vb(4) : error BC30466: Namespace or type 'Xml' > for the Imports 'System.Xml' cannot be found. > > Imports System.Xml > ~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(20) : error BC30002: Type 'XmlTextReader' > is not defined. > > Dim reader as XmlTextReader = nothing > ~~~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(25) : error BC30002: Type 'XmlTextReader' > is not defined. > > reader = new XmlTextReader (args) > ~~~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(49) : error BC30002: Type 'XmlTextReader' > is not defined. > > private shared Sub FormatXml (reader as XmlTextReader, filename as > String) > ~~~~~~~~~~~~~ > > D:\VB\XMLDoc\ReadXmlFile.vb(5 > not declared. > > case XmlNodeType.XmlDeclaration: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(62) : error BC30451: Name 'XmlNodeType' is > not declared. > > case XmlNodeType.ProcessingInstruction: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(66) : error BC30451: Name 'XmlNodeType' is > not declared. > > case XmlNodeType.DocumentType: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(70) : error BC30451: Name 'XmlNodeType' is > not declared. > > case XmlNodeType.Comment: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(74) : error BC30451: Name 'XmlNodeType' is > not declared. > > case XmlNodeType.Element: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(81) : error BC30451: Name 'XmlNodeType' is > not declared. > > case XmlNodeType.Text: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(85) : error BC30451: Name 'XmlNodeType' is > not declared. > > case XmlNodeType.Whitespace: > ~~~~~~~~~~~ > D:\VB\XMLDoc\ReadXmlFile.vb(106) : error BC30002: Type 'XmlTextReader' > is not defined. > > private shared Sub Format(byref reader as XmlTextReader , nodeType > as String) > ~~~~~~~~~~~~~ > > > What have I missed ? Do I call vbc correctly ? > > =?Utf-8?B?U2NvdHQgU3dpZ2FydA==?= |
|
|
|
#5 |
|
Posts: n/a
|
Scott Swigart 寫é“: > I sent you an e-mail with a Visual Studio project that will compile. > Scott, Tks for your help but is no longer reachable as I know my-deja.com no longer exists after google.com appears. Could you send the e-mail to again please (note: it's "9999", 4 "9" after word lonelyplanet) ? Thank You Very Much lonelyplanet |
|
|
|
#6 |
|
Posts: n/a
|
Scott Swigart 寫é“: > I sent you an e-mail with a Visual Studio project that will compile. > Scott, Tks for your help but is no longer reachable as I know my-deja.com no longer exists after google.com appears. Could you send the e-mail to again please (note: it's "9999", 4 "9" after word lonelyplanet) ? Thank You Very Much lonelyplanet |
|
|
|
#7 |
|
Posts: n/a
|
Scott Swigart 寫é“: > I sent you an e-mail with a Visual Studio project that will compile. > Scott, Tks for your help but is no longer reachable as I know my-deja.com no longer exists after google.com appears. Could you send the e-mail to again please (note: it's "9999", 4 "9" after word lonelyplanet) ? Thank You Very Much lonelyplanet |
|
|
|
#8 |
|
Posts: n/a
|
Scott Swigart 寫é“: > I sent you an e-mail with a Visual Studio project that will compile. > Scott, Tks for your help but is no longer reachable as I know my-deja.com no longer exists after google.com appears. Could you send the e-mail to again please (note: it's "9999", 4 "9" after word lonelyplanet) ? Thank You Very Much lonelyplanet |
|
|
|
#9 |
|
Posts: n/a
|
Scott Swigart 寫é“: > I sent you an e-mail with a Visual Studio project that will compile. > Scott, Tks for your help but is no longer reachable as I know my-deja.com no longer exists after google.com appears. Could you send the e-mail to again please (note: it's "9999", 4 "9" after word lonelyplanet) ? Thank You Very Much lonelyplanet |
|
|
|
#10 |
|
Posts: n/a
|
Scott Swigart 寫é“: > I sent you an e-mail with a Visual Studio project that will compile. > Scott, Tks for your help but is no longer reachable as I know my-deja.com no longer exists after google.com appears. Could you send the e-mail to again please (note: it's "9999", 4 "9" after word lonelyplanet) ? Thank You Very Much lonelyplanet |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| image (jpg,bmp,gif, etc.) convert to equivalent binary representation using vb.net? | archieSupremo | Software | 0 | 09-06-2009 12:20 PM |
| Captcha Creation In Vb.net | cutekiller28 | Software | 0 | 09-22-2008 07:15 AM |
| how to write codes to connect access database using html codes | hiralcp | Software | 0 | 12-18-2007 08:49 PM |
| (rumor) Toshiba Working With Microsoft On New Entertainment Xbox (360) with built-in HD-DVD | AirRaid | DVD Video | 6 | 10-21-2007 02:19 AM |
| Why aren't my Ulead or Nero vcd slide shows Working ???? | -! fredg | DVD Video | 20 | 09-17-2003 05:43 PM |