Click here to Skip to main content
16,010,394 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: datagridview in vb.net 2008 Pin
Jay Royall7-Jan-09 1:35
Jay Royall7-Jan-09 1:35 
GeneralRe: datagridview in vb.net 2008 Pin
jigneshDPatel7-Jan-09 1:50
jigneshDPatel7-Jan-09 1:50 
GeneralRe: datagridview in vb.net 2008 Pin
Dave Kreskowiak7-Jan-09 2:25
mveDave Kreskowiak7-Jan-09 2:25 
QuestionDatagridview add new rows -- Error Pin
Chrispie1236-Jan-09 18:36
Chrispie1236-Jan-09 18:36 
AnswerRe: Datagridview add new rows -- Error Pin
Mycroft Holmes6-Jan-09 20:25
professionalMycroft Holmes6-Jan-09 20:25 
AnswerRe: Datagridview add new rows -- Error Pin
Dave Kreskowiak7-Jan-09 6:31
mveDave Kreskowiak7-Jan-09 6:31 
GeneralRe: Datagridview add new rows -- Error Pin
Chrispie1237-Jan-09 17:05
Chrispie1237-Jan-09 17:05 
QuestionTrying to use XPath on HTML document using XPathNavigator, help on parsing invalid HTML? Pin
ultrafez006-Jan-09 12:19
ultrafez006-Jan-09 12:19 
Hi all,

I'm trying to use an XPath query on an HTML page, but XPathDocument throws an error and will not continue. The code I am using at the moment is this:

Dim doc As XPathDocument
Dim nav As XPathNavigator
Dim elems As XPathNodeIterator

Dim req As WebRequest = WebRequest.Create("http://www.geocaching.com/seek/cache_details.aspx?guid=e77eaad6-4a01-4c14-827f-808e9d771270")
Dim response As HttpWebResponse = CType(req.GetResponse(), HttpWebResponse)

'Create an XPathDocument from the stream
doc = New XPathDocument(response.GetResponseStream) '<<<<<<----- Error raised on this line

'Create the navigator
nav = doc.CreateNavigator

'Grab something using XPath
elems = nav.Select("id('CacheName')")


The error message I'm given is "'if' is an unexpected token. The expected token is 'CDATA['. Line 13, position 8." as an XmlException. I assume that this is due to invalid HTML, as the code works fine for other URLs.

Any ideas how to get this to work?

Thanks very much in advance.
AnswerRe: Trying to use XPath on HTML document using XPathNavigator, help on parsing invalid HTML? Pin
Dave Kreskowiak7-Jan-09 6:27
mveDave Kreskowiak7-Jan-09 6:27 
GeneralRe: Trying to use XPath on HTML document using XPathNavigator, help on parsing invalid HTML? Pin
ultrafez007-Jan-09 14:09
ultrafez007-Jan-09 14:09 
QuestionSave function for VB.Net Pin
rafaelz696-Jan-09 10:33
rafaelz696-Jan-09 10:33 
AnswerRe: Save function for VB.Net Pin
EliottA6-Jan-09 10:36
EliottA6-Jan-09 10:36 
QuestionHow to update form control from an embedded form Pin
sohaib_a6-Jan-09 7:00
sohaib_a6-Jan-09 7:00 
AnswerRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 7:16
EliottA6-Jan-09 7:16 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 8:51
sohaib_a6-Jan-09 8:51 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 8:53
EliottA6-Jan-09 8:53 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 9:45
sohaib_a6-Jan-09 9:45 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 9:48
EliottA6-Jan-09 9:48 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 10:02
mveDave Kreskowiak6-Jan-09 10:02 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 10:33
EliottA6-Jan-09 10:33 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 11:01
sohaib_a6-Jan-09 11:01 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 11:09
mveDave Kreskowiak6-Jan-09 11:09 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 11:11
EliottA6-Jan-09 11:11 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 11:38
sohaib_a6-Jan-09 11:38 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 12:09
mveDave Kreskowiak6-Jan-09 12:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.