Converting thousands of pages to XML

lquast

Usenet Archive
Joined
Apr 18, 2004
Messages
4
Reaction score
0
What's the best and fastest way to approach converting a large HTML site to XML? Thanks.
 

David Dorward

Usenet Archive
Joined
Feb 16, 2002
Messages
3,234
Reaction score
0
What's the best and fastest way to approach converting a large HTML site to XML?

That rather depends on what dialect of XML you wish to convert the HTML to, what form the HTML is at present, and what your skills are.

I would probably do something involving Perl, File::Find, HTML::parser or
HTML::TreeBuilder, and one of the many XML modules for Perl.
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
What's the best and fastest way to approach converting a large HTML site to XML? Thanks.

HTML Tidy is a good start (assuming your target is XHTML)

Then go to c.i.w.a.h and ask "Why ?"
 

lquast

Usenet Archive
Joined
Apr 18, 2004
Messages
4
Reaction score
0
Andy Dingley said:
HTML Tidy is a good start (assuming your target is XHTML)

Then go to c.i.w.a.h and ask "Why ?"

Hello,

Thank you for your suggestion regarding converting to XHTML. I am new to using these groups, however, and just looked up c.i.w.a.h! Very interesting—and I don't think I'll ask.

Regards

LQ
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
Thank you for your suggestion regarding converting to XHTML. I am new to using these groups, however, and just looked up c.i.w.a.h! Very interesting—and I don't think I'll ask.

:cool:

c.i.w.a.h is one of the most unfriendly groups I know of, and certainly the most useless and downright hostile that I still bother to read. "Converting to XHTML" is a regular topic in there and searching will show up some interesting discussion of its benefits, or lack of them. However many people in there have egos bigger than their knowledge and will spout the same old party line with more volume than understanding.

HTML Tidy is open sourced, AFAIR, and if you have a huge number of files to convert, you can tie the source into your favourite choice of scripting language.
 

lquast

Usenet Archive
Joined
Apr 18, 2004
Messages
4
Reaction score
0
Andy Dingley said:
:cool:

c.i.w.a.h is one of the most unfriendly groups I know of, and certainly the most useless and downright hostile that I still bother to read. "Converting to XHTML" is a regular topic in there and searching will show up some interesting discussion of its benefits, or lack of them. However many people in there have egos bigger than their knowledge and will spout the same old party line with more volume than understanding.

HTML Tidy is open sourced, AFAIR, and if you have a huge number of files to convert, you can tie the source into your favourite choice of scripting language.

I guess it couldn't hurt to see what they have to say! Thanks again for the info. HTML Tidy may come in handy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top