.NET how do i import LINQ to XML

Viewed 14

i tried to use it but i just cant figure out how i can access it. First time ever i used dotNET, because i need to expand a coworkers code.

i tried to use this Code:

Imports System.XML

but the IDE/Compiler could not find that class i tried also:

System.Xml.Linq

what do i have to do to use it ? Here is my full Module:

Option Explicit On
Imports System.IO
Imports System.Text
Imports System.XML 'Cant find this Interface

Module MyModule
Public Path As String = "C:\Testing"

Sub CreateXML()
    Dim myfile As XDocument = <?xml version=”1.0” encoding=”utf-8”?>
                              'XML Code here
    myfile.Save(Path)
End Sub
0 Answers
Related