You are here

protected function Dbug::xmlParse in dBug for Drupal 1.0.x

Same name and namespace in other branches
  1. 8 src/Dbug.php \Drupal\dbug\Dbug::xmlParse()
  2. 2.0.x src/Dbug.php \Drupal\dbug\Dbug::xmlParse()

Parse xml.

Parameters

string $xml_parser: The parser.

string $data: The data.

string $bFinal: The final.

1 call to Dbug::xmlParse()
Dbug::varIsXmlResource in src/Dbug.php
If variable is an xml resource type.

File

src/Dbug.php, line 608

Class

Dbug
Implementation of dBug for Drupal.

Namespace

Drupal\dbug

Code

protected function xmlParse($xml_parser, $data, $bFinal) {
  if (!xml_parse($xml_parser, $data, $bFinal)) {
    die(sprintf("XML error: %s at line %d\n", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser)));
  }
}