title: domdocument issue in visual basic
body: <p>i am thinking of working on xml file in visual basic. when i tried it using DOMDOCUMENT visual basic is showing error. It is not recognising what domdocument is. Do i have to call any library to make it working. take a look at my code</p>
  
  <pre><code>Attribute VB_Name = "Module1"
  Function getDistance(Origin As String, Destination As String) As Double
      Dim HttpReq As Object
      Dim myDomDoc As DOMDocument60
      Dim distanceNode As IXMLDOMNode
      Set HttpReq = CreateObject("MSXML2.XMLHTTP")
      HttpReq.Open "GET", "http://maps.googleapis.com/maps/api/distancematrix/xml?origins=" &amp; Origin &amp; "&amp;destinations=" &amp; Destination &amp; "&amp;sensor=false", False
      HttpReq.send
      MsgBox HttpReq.responseText
      Set myDomDoc = New DOMDocument60
      myDomDoc.LoadXML HttpReq.responseText
      Set distanceNode = myDomDoc.SelectSingleNode("/DistanceMatrixResponse/row/element/distance/value")
      getDistance = distanceNode.Text / 1000
  End Function
  </code></pre>