|
@@ 606-622 (lines=17) @@
|
| 603 |
|
$this->depth_array[$depth] = $pos; |
| 604 |
|
|
| 605 |
|
// loop through atts, logging ns declarations |
| 606 |
|
foreach($attrs as $key => $value){ |
| 607 |
|
// if ns declarations, add to class level array of valid namespaces |
| 608 |
|
if(preg_match("/^xmlns/",$key)){ |
| 609 |
|
if($ns_prefix = substr(strrchr($key,":"),1)){ |
| 610 |
|
$this->namespaces[$ns_prefix] = $value; |
| 611 |
|
} else { |
| 612 |
|
$this->namespaces['ns'.(count($this->namespaces)+1)] = $value; |
| 613 |
|
} |
| 614 |
|
if($value == 'http://www.w3.org/2001/XMLSchema'){ |
| 615 |
|
$this->XMLSchemaVersion = $value; |
| 616 |
|
$this->namespaces['xsi'] = $value.'-instance'; |
| 617 |
|
} elseif($value == 'http://www.w3.org/1999/XMLSchema'){ |
| 618 |
|
$this->XMLSchemaVersion = $value; |
| 619 |
|
$this->namespaces['xsi'] = $value.'-instance'; |
| 620 |
|
} |
| 621 |
|
} |
| 622 |
|
} |
| 623 |
|
|
| 624 |
|
// get element prefix |
| 625 |
|
if(preg_match("/:/",$name)){ |
|
@@ 2189-2205 (lines=17) @@
|
| 2186 |
|
//$this->debug("name: $name, prefix: $prefix"); |
| 2187 |
|
|
| 2188 |
|
// loop through atts, logging ns declarations |
| 2189 |
|
foreach($attrs as $key => $value){ |
| 2190 |
|
// if ns declarations, add to class level array of valid namespaces |
| 2191 |
|
if(preg_match("/^xmlns/",$key)){ |
| 2192 |
|
if($ns_prefix = substr(strrchr($key,":"),1)){ |
| 2193 |
|
$this->namespaces[$ns_prefix] = $value; |
| 2194 |
|
} else { |
| 2195 |
|
$this->namespaces['ns'.(count($this->namespaces)+1)] = $value; |
| 2196 |
|
} |
| 2197 |
|
if($value == 'http://www.w3.org/2001/XMLSchema'){ |
| 2198 |
|
$this->XMLSchemaVersion = $value; |
| 2199 |
|
$this->namespaces['xsi'] = $value.'-instance'; |
| 2200 |
|
} elseif($value == 'http://www.w3.org/1999/XMLSchema'){ |
| 2201 |
|
$this->XMLSchemaVersion = $value; |
| 2202 |
|
$this->namespaces['xsi'] = $value.'-instance'; |
| 2203 |
|
} |
| 2204 |
|
} |
| 2205 |
|
} |
| 2206 |
|
|
| 2207 |
|
// find status, register data |
| 2208 |
|
switch($this->status){ |