function XMLSchema::schemaEndElement in Salesforce Suite 5
Same name in this branch
- 5 includes/nusoap.php \XMLSchema::schemaEndElement()
- 5 includes/nusoap.orig.php \XMLSchema::schemaEndElement()
Same name and namespace in other branches
- 5.2 includes/nusoap.php \XMLSchema::schemaEndElement()
- 5.2 includes/nusoap.orig.php \XMLSchema::schemaEndElement()
* end-element handler * *
Parameters
string $parser XML parser object: * @param string $name element name * @access private
File
- includes/
nusoap.php, line 1444
Class
- XMLSchema
- parses an XML Schema, allows access to it's data, other utility methods no validation... yet. very experimental and limited. As is discussed on XML-DEV, I'm one of the people that just doesn't have time to read the spec(s) thoroughly,…
Code
function schemaEndElement($parser, $name) {
// bring depth down a notch
$this->depth--;
// position of current element is equal to the last value left in depth_array for my depth
if (isset($this->depth_array[$this->depth])) {
$pos = $this->depth_array[$this->depth];
}
// get element prefix
if ($prefix = $this
->getPrefix($name)) {
// get unqualified name
$name = $this
->getLocalPart($name);
}
else {
$prefix = '';
}
// move on...
if ($name == 'complexType') {
$this
->xdebug('done processing complexType ' . ($this->currentComplexType ? $this->currentComplexType : '(unknown)'));
$this->currentComplexType = array_pop($this->complexTypeStack);
//$this->currentElement = false;
}
if ($name == 'element') {
$this
->xdebug('done processing element ' . ($this->currentElement ? $this->currentElement : '(unknown)'));
$this->currentElement = array_pop($this->elementStack);
}
if ($name == 'simpleType') {
$this
->xdebug('done processing simpleType ' . ($this->currentSimpleType ? $this->currentSimpleType : '(unknown)'));
$this->currentSimpleType = array_pop($this->simpleTypeStack);
}
}