🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.xml
5 messages
5 total messages Started by Sergio Pottstock Thu, 17 Jul 2008 19:20
HTML to XML
#78
Author: Sergio Pottstock
Date: Thu, 17 Jul 2008 19:20
7 lines
1130 bytes
Hi,

I need transform one Html page to XML, I need extract any data. any idea?

Thank

PTTK
Re: HTML to XML
#79
Author: Stefan M. Huber
Date: Fri, 18 Jul 2008 07:32
11 lines
1120 bytes
On Thu, 17 Jul 2008 21:20:15 +0200, Sergio Pottstock <pttk@pttk.cl> wrote:

> Hi,
>
> I need transform one Html page to XML, I need extract any data. any idea?

Simple string operations.
If the HTML pages are valid XML already and you just need to transform it  
into another shape, you could use XPath or XSLT.

Stefan
Re: HTML to XML
#80
Author: Sergio Pottstock
Date: Fri, 18 Jul 2008 15:02
23 lines
1342 bytes
Thank Stefan:

Some example to see?........

Thank

PTTK


"Stefan M. Huber" <looseleaf@gmx.net> escribi� en el mensaje
news:op.ueg8k4dts9ddfw@ws-6...
> On Thu, 17 Jul 2008 21:20:15 +0200, Sergio Pottstock <pttk@pttk.cl> wrote:
>
> > Hi,
> >
> > I need transform one Html page to XML, I need extract any data. any
idea?
>
> Simple string operations.
> If the HTML pages are valid XML already and you just need to transform it
> into another shape, you could use XPath or XSLT.
>
> Stefan
Re: HTML to XML
#81
Author: Stefan M. Huber
Date: Sat, 19 Jul 2008 09:51
20 lines
1582 bytes
On Fri, 18 Jul 2008 17:02:33 +0200, Sergio Pottstock <pttk@pttk.cl> wrote:

> Thank Stefan:
>
> Some example to see?........

How about a little bit of spirit of research?

http://www.google.com/search?client=opera&rls=en&q=xpath+tutorial&sourceid=opera&ie=utf-8&oe=utf-8
http://www.google.com/search?client=opera&rls=en&q=xpath+examples&sourceid=opera&ie=utf-8&oe=utf-8

Remember: XPath only works if the HTML page is well formed. Which  
99.99999999% of all websites aren't.
I did not look for DOM parsers who create a dom tree from incorrect XML  
data. There might be some of them out there. As long as you have a DOM  
tree for your document, XPath helps.

Otherwise, it's manual work.

Stefan
Re: HTML to XML
#82
Author: Sergio Pottstock
Date: Sun, 20 Jul 2008 17:09
28 lines
1860 bytes
Thank Stefan

PTTK

"Stefan M. Huber" <looseleaf@gmx.net> escribi� en el mensaje
news:op.uei9ngnks9ddfw@mars.huste.lnet...
> On Fri, 18 Jul 2008 17:02:33 +0200, Sergio Pottstock <pttk@pttk.cl> wrote:
>
> > Thank Stefan:
> >
> > Some example to see?........
>
> How about a little bit of spirit of research?
>
>
http://www.google.com/search?client=opera&rls=en&q=xpath+tutorial&sourceid=opera&ie=utf-8&oe=utf-8
>
http://www.google.com/search?client=opera&rls=en&q=xpath+examples&sourceid=opera&ie=utf-8&oe=utf-8
>
> Remember: XPath only works if the HTML page is well formed. Which
> 99.99999999% of all websites aren't.
> I did not look for DOM parsers who create a dom tree from incorrect XML
> data. There might be some of them out there. As long as you have a DOM
> tree for your document, XPath helps.
>
> Otherwise, it's manual work.
>
> Stefan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads