Re: MSHTML DocType object? Can't get the string
- From: "Bryan Garaventa" <bryan@xxxxxxxxxxxxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 23:46:05 -0700
Which regular expressions would that be? This is part of the problem, I need
to capture the entire source code of a page programmatically.
This is easy to do for the HTML tag, which would be simply
Dim Source as String = DocumentObject.documentElement.outerHTML
However, this doesn't include the DocType declaration if one is present on
the page, which is fairly critical during html validation.
If there is a regular expression for this, that would be great. I don't know
what it is though.
----- Original Message -----
From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Saturday, September 29, 2007 10:30 PM
Subject: Re: MSHTML DocType object? Can't get the string
Wouldn't be more simple and sure to use regular expressions for this?
Octavian
----- Original Message -----
From: "Bryan Garaventa" <bryan@xxxxxxxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, September 30, 2007 7:46 AM
Subject: MSHTML DocType object? Can't get the string
Does anyone know how to get the string value out of the Document.DocType
object using VB?
I asumed that a string value would be returned when this was called, but
no luck. For instance,
' Asume that DocumentObject is the current Document object for the given
web page.
Dim DocType as String = DocumentObject.DocType
This looks a little different in VB6, but you get the idea. Well, it
doesn't work. There is no string since an object of type DocumentType is
being returned.
However, there doesn't appear to be any way of creating a variable of
type DocumentType in VB, which is presumably being returned by
DocumentObject.DocType.
I just need to get the actual string for the DocType tag itself from the
document object using VB.
Any ideas how I might be able to do this?
Thanks a million,
Bryan Garaventa
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
- Follow-Ups:
- Re: MSHTML DocType object? Can't get the string
- From: Octavian Rasnita
- References:
- RE: common Jobs for VI Programmers: GUIs, DSP, DB, Asm
- From: Ken Perry
- Re: Symbian Vs NET, Learning Audio DSP (Was: common Jobs for VI Programmers)
- From: Veli-Pekka Tätilä
- RE: Symbian Vs NET, Learning Audio DSP (Was: common Jobs for VI Programmers)
- From: Ken Perry
- Re: Symbian Vs NET, Music DSP Resources
- From: Veli-Pekka Tätilä
- Re: Symbian Vs NET, Music DSP Resources
- From: Jim
- RE: Symbian Vs NET, Music DSP Resources
- From: Ken Perry
- MSHTML DocType object? Can't get the string
- From: Bryan Garaventa
- Re: MSHTML DocType object? Can't get the string
- From: Octavian Rasnita
Other related posts:
- » MSHTML DocType object? Can't get the string
- » Re: MSHTML DocType object? Can't get the string
- » Re: MSHTML DocType object? Can't get the string
- » Re: MSHTML DocType object? Can't get the string
- » Re: MSHTML DocType object? Can't get the string
Wouldn't be more simple and sure to use regular expressions for this? Octavian----- Original Message ----- From: "Bryan Garaventa" <bryan@xxxxxxxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Sunday, September 30, 2007 7:46 AM Subject: MSHTML DocType object? Can't get the string
Does anyone know how to get the string value out of the Document.DocType object using VB?I asumed that a string value would be returned when this was called, but no luck. For instance,' Asume that DocumentObject is the current Document object for the given web page.Dim DocType as String = DocumentObject.DocTypeThis looks a little different in VB6, but you get the idea. Well, it doesn't work. There is no string since an object of type DocumentType is being returned.However, there doesn't appear to be any way of creating a variable of type DocumentType in VB, which is presumably being returned by DocumentObject.DocType.I just need to get the actual string for the DocType tag itself from the document object using VB.Any ideas how I might be able to do this? Thanks a million, Bryan Garaventa __________View the list's information and change your settings at http://www.freelists.org/list/programmingblind
__________View the list's information and change your settings at http://www.freelists.org/list/programmingblind
- Re: MSHTML DocType object? Can't get the string
- From: Octavian Rasnita
- RE: common Jobs for VI Programmers: GUIs, DSP, DB, Asm
- From: Ken Perry
- Re: Symbian Vs NET, Learning Audio DSP (Was: common Jobs for VI Programmers)
- From: Veli-Pekka Tätilä
- RE: Symbian Vs NET, Learning Audio DSP (Was: common Jobs for VI Programmers)
- From: Ken Perry
- Re: Symbian Vs NET, Music DSP Resources
- From: Veli-Pekka Tätilä
- Re: Symbian Vs NET, Music DSP Resources
- From: Jim
- RE: Symbian Vs NET, Music DSP Resources
- From: Ken Perry
- MSHTML DocType object? Can't get the string
- From: Bryan Garaventa
- Re: MSHTML DocType object? Can't get the string
- From: Octavian Rasnita