function cc::xml_php5_create_parser in Constant Contact 6.2
Same name and namespace in other branches
- 6.3 class.cc.php \cc::xml_php5_create_parser()
- 7.3 class.cc.php \cc::xml_php5_create_parser()
Instantiate an XML parser under PHP5
PHP5 will do a fine job of detecting input encoding if passed an empty string as the encoding. * * @access private
1 call to cc::xml_php5_create_parser()
- cc::xml_create_parser in ./
class.cc.php - * Return XML parser, and possibly re-encoded source * * @access private
File
- ./
class.cc.php, line 1553
Class
- cc
- @file
Code
function xml_php5_create_parser($in_enc, $detect) {
// by default php5 does a fine job of detecting input encodings
if (!$detect && $in_enc) {
return xml_parser_create($in_enc);
}
else {
return xml_parser_create('');
}
}