protected function parseString($parser, $data, $isFinal)
    {
        if (!xml_parse($parser, $data, $isFinal)) {
            throw new Exception(
                xml_error_string(xml_get_error_code($parser))
                .' At line: '.
                xml_get_current_line_number($parser)
            );
        }

        return $parser;
    }
protected function parseString($parser, $data, $isFinal)
    {
        if (!xml_parse($parser, $data, $isFinal)) {
            throw new Exception(
                xml_error_string(xml_get_error_code($parser))
                .' At line: '.
                xml_get_current_line_number($parser)
            );
        }

        return $parser;
    }
protected function parseString ( $ parser , $ data , $ isFinal ) { if ( ! xml_parse ( $ parser , $ data , $ isFinal ) ) { throw new Exception ( xml_error_string ( xml_get_error_code ( $ parser ) ) . ' At line: ' . xml_get_current_line_number ( $ parser ) ) ; } return $ parser ; }
Parse data using xml_parse

@param resource $parser  The XML parser
@param string   $data    The data to parse
@param boolean  $isFinal Whether or not this is the final part to parse

@return NULL
@throws Exception
Parse data using xml_parse