You are here

function cc::xml_php5_create_parser in Constant Contact 7.3

Same name and namespace in other branches
  1. 6.3 class.cc.php \cc::xml_php5_create_parser()
  2. 6.2 class.cc.php \cc::xml_php5_create_parser()

Instantiate an XML parser under PHP5.

PHP5 will do a fine job of detecting input encoding iif 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.

File

./class.cc.php, line 1745
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

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('');
  }
}