Go Back   Velocity Reviews > Newsgroups > MCSD
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

MCSD - Example codes with VB.NET working with XML doc required

 
Thread Tools Search this Thread
Old 08-25-2005, 06:31 PM   #1
Default Example codes with VB.NET working with XML doc required


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
  Reply With Quote
Old 08-25-2005, 09:14 PM   #2
=?Utf-8?B?U2NvdHQgU3dpZ2FydA==?=
 
Posts: n/a
Default RE: Example codes with VB.NET working with XML doc required
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==?=
  Reply With Quote
Old 08-26-2005, 02:27 PM   #3
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required
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 : error BC30451: Name 'XmlNodeType' is
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
  Reply With Quote
Old 08-26-2005, 06:30 PM   #4
=?Utf-8?B?U2NvdHQgU3dpZ2FydA==?=
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required
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 : error BC30451: Name 'XmlNodeType' is
> 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==?=
  Reply With Quote
Old 08-29-2005, 07:10 AM   #5
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required

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
  Reply With Quote
Old 08-29-2005, 07:11 AM   #6
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required

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
  Reply With Quote
Old 08-29-2005, 07:11 AM   #7
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required

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
  Reply With Quote
Old 08-29-2005, 07:11 AM   #8
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required

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
  Reply With Quote
Old 08-29-2005, 07:12 AM   #9
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required

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
  Reply With Quote
Old 08-29-2005, 07:12 AM   #10
lonelyplanet
 
Posts: n/a
Default Re: Example codes with VB.NET working with XML doc required

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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46