Code:<?xml version="1.0" encoding="utf-8"?> <ApiResponse Status="OK" xmlns="http://api.namecheap.com/xml.response"> <Errors /> <Warnings /> <RequestedCommand>namecheap.domains.check</RequestedCommand> <CommandResponse Type="namecheap.domains.check"> <DomainCheckResult Domain="domain1.com" Available="false" /> <DomainCheckResult Domain="domain2.com" Available="false" /> </CommandResponse> <Server>WEB1-SANDBOX1</Server> <GMTTimeDifference>--4:00</GMTTimeDifference> <ExecutionTime>2.391</ExecutionTime> </ApiResponse>
i thought it would be like this but apparently not
VB.NET Code:
Dim doc As New XmlDocument doc.Load("https://api.sandbox.namecheap.com/xml.response?ApiUser=xxxx&ApiKey=xxxx&UserName=xxxx&ClientIp=xxxx&Command=namecheap.domains.check&DomainList=domain1.com,domain2.com") Dim nodes As XmlNodeList = doc.SelectNodes("CommandResponse/DomainCheckResult") For Each node As XmlNode In nodes Dim Remarks As String = node.SelectSingleNode("Domain").InnerText Dim Time As String = node.SelectSingleNode("Available").InnerText ListView1.Items.Add(New ListViewItem(New String() {Remarks, Time})) Next



Reply With Quote


