473,796 Members | 2,911 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extracting XML from html file

I am trying ti extract data from a html file in an xml format. The html
contains java script and I only want a small part of the file to be
extracted. Can anyone tell where I can get C source code that does this or an
..exe file. Or any help that will point me in the right direction. Thanks in
advance. Below is segment of code I am concerned with

// -->
</SCRIPT>

<TABLE border=0 CELLSPACING=1 CELLPADDING=2 width="100%">
<tr BGCOLOR="#D4D4D 4">
<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Pri ce</b></font></td>
<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Cha nge (%)</b></font></td>

<SCRIPT>
<!--
if (isopen==1) {
d("<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Bid-Ask</b></font></td>");
} else {
d("<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Bid-Ask (at
Close)</b></font></td>");
}

// -->
</SCRIPT>

<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Cur rency</b></font></td>
<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Vol ume</b></font></td>
<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Tra des</b></font></td>

<SCRIPT>
<!--
if (isopen==1) {
d("<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Clo se</b></font></td>");
} else {
d("<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Pre v.
Close</b></font></td>");
}
// -->
</SCRIPT>

<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Hig h</b></font></td>
<td ALIGN=CENTER><f ont face=Verdana class=sm><b>Low </b></font></td></tr>

<tr BGCOLOR="#f0f0f 0">
<td ALIGN=CENTER><F ONT class=down>

<SCRIPT>
<!--
d(nmp);
// -->
</SCRIPT>

</FONT></td>
<td ALIGN=CENTER><F ONT class=down><NOB R>- 0.5 (0.42)</NOBR></FONT></td>
<td ALIGN=CENTER><f ont class=ystrip>11 7.5 - 117.75</font></td>
<td ALIGN=CENTER><f ont class=data>GBX</FONT></td>
<td ALIGN=CENTER><f ont class=data>9571 6425</font></td>
<td ALIGN=CENTER><f ont class=data>1785 </font></td>
<td ALIGN=CENTER><f ont class=data>118</font></td>
<td ALIGN=CENTER><f ont class=data>119</font></td>
<td ALIGN=CENTER><f ont class=data>117. 25</font></td></tr>
</TABLE>

Nov 12 '05 #1
2 1556
"gee57" <ge***@discussi ons.microsoft.c om> wrote in message news:A7******** *************** ***********@mic rosoft.com...
I am trying ti extract data from a html file in an xml format. : : <TABLE border=0 CELLSPACING=1 CELLPADDING=2 width="100%">


What portion of the markup you included is in XML format? XML
syntax requires attribute values must have single or double quote
delimiters. XHTML requires element names to be lowercase.
Derek Harmon
Nov 12 '05 #2
The Source is part of HTML File that I am concerned with. I want to pick out
the table data and some of the variable data. the source is available at
http://www.axlquotes.com/axl-dlls/pu...uote&page2=VOD

"Derek Harmon" wrote:
"gee57" <ge***@discussi ons.microsoft.c om> wrote in message news:A7******** *************** ***********@mic rosoft.com...
I am trying ti extract data from a html file in an xml format.

: :
<TABLE border=0 CELLSPACING=1 CELLPADDING=2 width="100%">


What portion of the markup you included is in XML format? XML
syntax requires attribute values must have single or double quote
delimiters. XHTML requires element names to be lowercase.
Derek Harmon

Nov 12 '05 #3

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

Similar topics

5
2642
by: Nazgul | last post by:
Hi! I want to implement a small tool in Python for distributing "patches" and I need Your advice. This application should be able to package all files chosen by a user into a self-extracting.exe so that when you click on it, it will extract the files and run setup.exe which among the other will copy these files into respective folders (the absolute paths could be written in some config file). Of course the files should be extracted first...
2
2540
by: Avi | last post by:
hi, Can anyone tell me what the problem is and how to solve it The following piece of code resides on an asp page on the server and is used to download files from the server to the machine accessing the abobe mentioned asp page. It WORKS for every type of file when I change the content type according to the file type, but it won't work with self extracting files. When an end user downloads a self extracting file by accessing the...
1
2807
by: Cognizance | last post by:
Hi gang, I'm an ASP developer by trade, but I've had to create client side scripts with JavaScript many times in the past. Simple things, like validating form elements and such. Now I've been assigned the task of extracting content from a given HTML page. If anyone's familiar with the Yahoo! Store order confirmation screen, I need to be able to grab the total amount from the table to the right-hand side. (Sample File:
3
3348
by: news | last post by:
I am trying to get at the source of a web page. Looking at the innerHTML element is only part of the story. In IE, right-clicking on various different parts of the page gives me different results when I click on view_source. The source I need is contained inside IFRAME tags (which contain references to jsp pages)... The html content isn't available when I look at the innerHTML of the document returned in the DocumentComplete event of the...
1
2117
by: Terry Olsen | last post by:
Ok, now that I've got my disk imager program working, I'd like to attach a "self-extractor" to the front end of the image file and make it a self-extracting disk image executable file. The idea being that the user would double-click on the file and the disk would be created. I would like to be able to "create" the self-extracting disk image from my program. Any guidance on how to go about doing this? thanks.
3
16921
by: Johny | last post by:
Does anyone know about a good regular expression for URL extracting? J.
6
4456
by: Werner | last post by:
Hi, I try to read (and extract) some "self extracting" zipefiles on a Windows system. The standard module zipefile seems not to be able to handle this. False Is there a wrapper or has some one experience with other libaries to
4
8683
by: Ant | last post by:
Hi all, My kids have a bunch of games that have to be run from CD (on Windows XP). Now they're not very careful with them, and so I have a plan. I've downloaded a utility (Daemon Tools) which allows me to mount and unmount virtual CD drives onto an ISO image. This works well, but I want to wrap this in a Python GUI which will present them with a list of games in a particular directory. Essentially the steps are this:
1
1203
by: KingAdnan | last post by:
Hello friends, i am new here, i need help, i am making script for users who will upload zip file and the script will look for index.html inside zip, if it success to find it, it should echo all content of that index.html as a web page, here is my code: Code: <? $f = "c:/PHPServer/template.zip"; $zip = zip_open($f); if($zip)
0
1116
by: Andreas Tawn | last post by:
-----Original Message----- g] On Behalf Of Steve Holden Can't help with a recipe, but here's the formal spec if want to figure it out yourself. http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html Hope that helps.
0
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10201
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.