XML parser

Ivo Kocvara xkocvara na fi.muni.cz
Pátek Červenec 26 14:24:30 CEST 2002


man XML::Parser 

...
ENCODINGS
       XML documents may be encoded in character sets other than
       Unicode as long as they may be mapped into the Unicode
       character set. Expat has further restrictions on encod-
       ings. Read the xmlparse.h header file in the expat distri-
       bution to see details on these restrictions.

       Expat has built-in encodings for: `UTF-8', `ISO-8859-1',
       `UTF-16', and `US-ASCII'. Encodings are set either through
       the XML declaration encoding attribute or through the Pro-
       tocolEncoding option to XML::Parser or XML::Parser::Expat.

       For encodings other than the built-ins, expat calls the
       function load_encoding in the Expat package with the
       encoding name. This function looks for a file in the path
       list @XML::Parser::Expat::Encoding_Path, that matches the
       lower-cased name with a '.enc' extension. The first one it
       finds, it loads.

       If you wish to build your own encoding maps, check out the
       XML::Encoding module from CPAN.


-- 
ivo kocvara



Další informace o konferenci Linux