kevin_i_orourke has asked for the wisdom of the Perl Monks concerning the following question:
I think I'm suffering from a basic misunderstanding here, so please feel free to tell me I'm stupid so long as you then explain why I'm stupid.
This is a fairly long post as I want to try to explain what I'm trying to do before I get to the question.
I have the beginnings of a website and I want to add more content. However I want to make adding things easy, so that I don't have to keep cutting and pasting headers and footers when I change something.
I thought this would be an ideal job for Perl, so I converted all the files to XHTML using HTML Tidy. I've then tried various modules to process the files.
If you look at the site you can see that some of the places and people mentioned have non-English names, containing characters such as ö, ç and é.
The XML modules I've tried so far mostly just delete these entities. XML::Grove seems to be the best, converting them to ÃX, where X is another odd character.
This is where I get to the point:why are the other modules just deleting the entities? Do I need to keep a version of the XHTML DTD locally for the modules to refer to? Do I need to be supplying some special options to XML::Parser or XML::Parser::PerlSAX?
If you really want to see some example code let me know, I have to transfer files between work (here) and home (where I'm playing with XML) on Zip disks
:-(
-- Kevin O'Rourke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML and entities, what am I doing wrong?
by mirod (Canon) on Jun 08, 2001 at 14:16 UTC | |
|
Re: XML and entities, what am I doing wrong?
by gildir (Pilgrim) on Jun 08, 2001 at 17:19 UTC | |
by mirod (Canon) on Jun 08, 2001 at 17:59 UTC |