|
-
Jan 13th, 2004, 04:32 PM
#1
Thread Starter
New Member
XmlDocument objXMLDoc = new XmlDocument(); gives Error
Hello,
I added the System.XML.dll reference to my project.
Imports System.XML and Imports System.Xml.XmlDocument is also added to my code
However when i type:
XmlDocument objXMLDoc = new XmlDocument();
I see that:
XmlDocument, objXMLDoc and ';' got underlined in blue
When i compile the code in Visual Studio i got the following error:
'XmlDocument' is a type and cannot be used as an expression"
What do i do wrong?
Greetz
Cheyloe
-
Jan 13th, 2004, 04:35 PM
#2
Since this is a VB.NET forum, I'm going to assume you don't want to use C#.
VB Code:
Dim objXMLDoc As New XmlDocument
-
Jan 13th, 2004, 04:43 PM
#3
Thread Starter
New Member
So what i wrote above was C# code?
Indeed i need VB.NET code
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|