473,406 Members | 2,633 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,406 software developers and data experts.

HTML to XML call

Hi,

I am trying to figure out if it would be possible to write an app that
could visit certain website, obtain the relevant data from those pages
and convert it into a readable XML file.

All I would like to know is how would I go about starting this task,
and any advice comments anyone has on it.

Regards
Joe

May 2 '07 #1
3 1601
The W3C's "tidy" tool can rewrite (potentially broken) HTML into XHTML,
which is an XML-based dialect of HTML.

There are also HTML parsers available whose output is the standard W3C
APIs such as SAX and DOM, and thus compatable with XML tooling. NekoHTML
is one such, leveraging the Apache Xerces parser framework.
--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
May 2 '07 #2
jo********@gmail.com <jo********@gmail.comwrote in
<11**********************@p77g2000hsh.googlegroups .com>:
I am trying to figure out if it would be possible to write
an app that could visit certain website, obtain the
relevant data from those pages and convert it into a
readable XML file.
What's the problem? Retrieve the document using your http
library of choice, parse it using your HTML parser of
choice, feed the DOM document to your XSLT processor of
choice, serialize the resulting DOM document (using, well,
your serializer of choice). Better yet, stuff the resulting
DOM document into your XML database of choice. Heck, make
it RDF/XML, stuff it into some SPARQL-aware storage and
venture capitalists will be swarming all over you. I would,
if I had a few million bucks I didn't need. Providing
third-party semantics for all the meatbag-parsable content
on the web will be quite an industry some ten years from
now I think.

Okay, scratch that, I'm just daydreaming. But the basic
process for your task would be what I described indeed (the
real heart of it would be an XSLT transformation that would
suck the relevant data out of your source document,
naturally).
All I would like to know is how would I go about starting
this task, and any advice comments anyone has on it.
My professional opinion is that if you don't even know where
to start, you're not really up for it. I hope you don't
need it for anything serious--but it certainly would make
an excellent exercise in many modestly exciting areas.

--
Pavel Lepin
May 3 '07 #3
On 2 May, 15:52, joeraym...@gmail.com wrote:
I am trying to figure out if it would be possible to write an app that
could visit certain website, obtain the relevant data from those pages
and convert it into a readable XML file.
It's a staggeringly hard problem to solve. The tricky bit is that
word "relevant".

Otherwise it's trivial.

May 3 '07 #4

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

Similar topics

21
by: deko | last post by:
Is it possible to call a php script from an html page? I have a TestPage.php that I want to convert to TestPage.html - but still call a php script from it. This is how my TestPage.php looks...
4
by: Fergus O'Shea | last post by:
I have some text that appears in a Database. This text includes HTML(e.g. <br> tags). I also have a Webpage that makes an XML call to that database. But when the text is displayed on the page,...
4
by: CLEAR-RCIC | last post by:
A person in a different division where I work asked for some help. He has an HTML website and wants to use some functionality in a .Net .dll that I've developed. I currently use this...
9
by: Robby Bankston | last post by:
I'm working on some code and am running into brick walls. I'm trying to write out Javascript with Javascript and I've read the clj Meta FAQ and didn't see the answer, read many similar posts (with...
3
by: Epetruk | last post by:
Hi, I'm looking for samples of ASP.NET projects where the programming has been done almost entirely using codebehind and classes with very little code in the aspx files themselves. I would...
5
by: Andy G | last post by:
I have many html pages that I need to put a button on. When this button is clicked I need to call a stored procedure that updates a record. -How do I add a button to html page that will call a...
5
by: Pat | last post by:
Hello, I have a question in regards to the use of php and html. The question is: can someone write a script separate from the html page and then call the script in like in a css style and use...
0
by: bp_jobemail | last post by:
I'm trying to use PHP to wrap the output of an HTML form before it goes into a precompiled C cgi script. Essentially, the company that I work for uses a purchased precompiled c program for their...
3
by: Chuck Renner | last post by:
Please help! This MIGHT even be a bug in PHP! I'll provide version numbers and site specific information (browser, OS, and kernel versions) if others cannot reproduce this problem. I'm...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.