🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.xml
Article #81

Re: HTML to XML

#81
From: 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
Technical Details
Message-ID: <op.uei9ngnks9ddfw@mars.huste.lnet>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <487f9b2f@newsgroups.borland.com> <op.ueg8k4dts9ddfw@ws-6> <4880b046@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,6e3f34e24a5d2724
X-Google-Attributes: gidf5d9b,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 19 Jul 2008 11:51:06 +0200
Subject: Re: HTML to XML
From: "Stefan M. Huber" <looseleaf@gmx.net>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Newsgroups: borland.public.delphi.xml
References: <487f9b2f@newsgroups.borland.com> <op.ueg8k4dts9ddfw@ws-6>
 <4880b046@newsgroups.borland.com>
Content-Transfer-Encoding: 7bit
Message-ID: <op.uei9ngnks9ddfw@mars.huste.lnet>
User-Agent: Opera Mail/9.51 (Win32)
NNTP-Posting-Host: 85.127.250.153
X-Trace: newsgroups.borland.com 1216461063 85.127.250.153 (19 Jul 2008 02:51:03 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail