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
|