You are here

function JSimpleXML::_parse in Ubercart 5

Start parsing an XML document

Parses an XML document. The handlers for the configured events are called as many times as necessary.

Parameters

$xml string data to parse:

2 calls to JSimpleXML::_parse()
JSimpleXML::loadFile in uc_store/includes/simplexml.php
Interprets an XML file into an object
JSimpleXML::loadString in uc_store/includes/simplexml.php
Interprets a string of XML into an object

File

uc_store/includes/simplexml.php, line 240

Class

JSimpleXML
SimpleXML implementation.

Code

function _parse($data = '') {

  //Error handling
  if (!xml_parse($this->_parser, $data)) {
    $this
      ->_handleError(xml_get_error_code($this->_parser), xml_get_current_line_number($this->_parser), xml_get_current_column_number($this->_parser));
  }

  //Free the parser
  xml_parser_free($this->_parser);
}