473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DomDocument

I remember in Visual Basic 6, I can retrieve a HTML file to a DOMDocument
then do a search for a word or a unique string of code contain in the HTML
then extract the <table> that contains the search string and then parse it

Can I do that in ASP.net? Code samples? Tutorials?

There must be because its very often used in Visual Basic 6 (RSS feeds and
etc). Thanks in advance.
Nov 19 '05 #1
1 1295
If you want to use COM Interop, you can use the WebBrowser control in almost
exactly the same way you did with VB 6.0.

However, you may want to look into 100% managed code alternatives such as
HTMLAgilitypack:
http://blogs.msdn.com/smourier/archi...6/04/8265.aspx

Peter

"jty202" <jt****@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I remember in Visual Basic 6, I can retrieve a HTML file to a DOMDocument
then do a search for a word or a unique string of code contain in the HTML
then extract the <table> that contains the search string and then parse it

Can I do that in ASP.net? Code samples? Tutorials?

There must be because its very often used in Visual Basic 6 (RSS feeds and
etc). Thanks in advance.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Colin McGuigan | last post by:
Shorter: How do I tell DOMDocument->load() what encoding I want it to use? Longer: I search for and process XML files from elsewhere, and need to transform them with some XSLTs. No problem. ...
1
by: Mini Mouse | last post by:
Hiya folks, I'm getting the following error(s) below and I'm at a bit of a loss as to how to correct it. When I give it a parameter it then complains it needs two parameters and the second one...
1
by: K. Wilder | last post by:
I've made an ASP form page that is executed via a Javascript function. There's a javascript function that builds an XML object with the form values. But in some browers it seems to fail on the...
3
by: hb | last post by:
Hi, I need to use MSXML2.DOMDocument in my ASP page. The following is my code: xml.asp: ===== <% dim sx sx="<root><a>text1</a><b>text2</b></root>" dim xd
3
by: Dean Slindee | last post by:
Newbie question: Any easy way to convert a DOMDocument to a System.Xml.Document? Dim DOMDocument As DOMDocument40 to this Dim xmlDoc As System.Xml.XmlDocument Thanks,
0
by: pieV | last post by:
I am using Msxml2.DOMDocument to pull xml fragments from different sibling websites. This works off the net, however during testing on my localhost, it fails if called from an external website....
2
by: Sebastian Araya | last post by:
Hello, I'm trying to create a single function to append new nodes to a DOMDocument object: public function addElement( $element, $name, $value = '', $attrs = Null ) { if( !( $created =...
0
by: paulroskilly | last post by:
Hi, Im using the DomDocument class in PHP5 to parse thru a xml file, but it keeps timing out on the load method : $dom = new DomDocument(); $dom->load("<some url>"); Browsing to the url in...
2
by: J˙Giusł vs ::NRG::ius | last post by:
Hi all. I have this script ----------------------------------------------------------- <?php $doc = new DOMDocument(); $doc->load('books.xml'); echo $doc->saveXML(); ?>
1
by: malayappa | last post by:
Hi All here is the error what i m getting Warning: domdocument::domdocument() expects parameter 2 to be long, string given in D:\Program Files\Apache Software...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.