Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > XML General > Xml and Delphi

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-17-2008, 10:04 PM
Sergio Pottstock
 
Posts: n/a

Default HTML to XML



Hi,

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

Thank

PTTK


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-18-2008, 08:58 AM
Stefan M. Huber
 
Posts: n/a

Default Re: HTML to XML

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
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 04:13 PM
Sergio Pottstock
 
Posts: n/a

Default Re: HTML to XML

Thank Stefan:

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

Thank

PTTK


"Stefan M. Huber" <looseleaf@gmx.net> escribió en el mensaje
newsp.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



Reply With Quote
  #4 (permalink)  
Old 07-19-2008, 11:51 AM
Stefan M. Huber
 
Posts: n/a

Default Re: HTML to XML

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=...utf-8&oe=utf-8
http://www.google.com/search?client=...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
Reply With Quote
  #5 (permalink)  
Old 07-20-2008, 08:51 PM
Sergio Pottstock
 
Posts: n/a

Default Re: HTML to XML

Thank Stefan

PTTK

"Stefan M. Huber" <looseleaf@gmx.net> escribió en el mensaje
newsp.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=...utf-8&oe=utf-8
>

http://www.google.com/search?client=...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



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 10:42 AM.
Style Developed by Epic Designz