ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Newbie question
by Robin Berjon other posts by this author
Jul 10 2002 3:41PM messages near this date
view in the new Beta List Site
Newbie question | RE: Newbie question
On Wednesday 10 July 2002 09:05, Mohammed Khatib wrote:
>  I recently wrote an XML to Folio flat file converter (using
>  Perl) in which entities were converted to single characters
>  using an %ent2char hash, where entities were mapped to the
>  desired ISO-Lat 1 character.
> 
>  During testing, every time the program encountered an entity
>  foreign to its knowledge, I had to look up the characer
>  chart and add to the %ent2char associative array. I found
>  this rather troublesome and somewhat inefficient.
> 
>  Was wondering if anyone knew of a Perl module where "common"
>  entities, such as those representing ISO-Lat 1 characters,
>  were listed and mapped to single characters and called upon
>  via methods of the module?

I'm not sure I understand your problem. An XML parser can't really parse a 
file properly if it doesn't know the entities that that document is using. 
All you would normally need to do is specify those entities in the DTD. They 
will then be taken care of by the parser automatically. Which parser are you 
using?

-- 
Robin Berjon <robin@[...].com>  -- for hire: http://robin.berjon.com/
  Radioactive cats have 18 half-lives.

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Mohammed Khatib
Robin Berjon

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved