From:             luca dot casagrande at gmail dot com
Operating system: Linux
PHP version:      5.1.6
PHP Bug Type:     SimpleXML related
Bug description:  SimpleXML doesn't parse attributes with : inside

Description:
------------
Hi!
I am trying to parse an xml with simplexml;

This is the XML file:
<ExecuteResponse version="0.4.0"
xsi:schemaLocation="http://www.opengeospatial.net/wps
http://www.bnhelp.cz/schema/wps/0.4.0/wpsExecute.xsd";>
<ows:Identifier>
                visibility2
        </ows:Identifier>
&#8722;
        <Status>
<ProcessSucceeded/>
</Status>
&#8722;
        <ProcessOutputs>
&#8722;
        <Output>
<ows:Identifier>
                                output
                        </ows:Identifier>
<ows:Title>
                                Resulting output map
                        </ows:Title>
<!--Element Abstract not set-->
<ComplexValueReference encoding="utf-8" format="image/png"
ows:reference="http://localhost/wps/wpsoutputs/output-2006-10-26-17-53-42.tif";
schema=""/>
</Output>
</ProcessOutputs>
</ExecuteResponse

This is the dump of the xml obj:

object(SimpleXMLElement)#1 (3) {
  ["@attributes"]=>
  array(1) {
    ["version"]=>
    string(5) "0.4.0"
  }
  ["Status"]=>
  object(SimpleXMLElement)#3 (1) {
    ["ProcessSucceeded"]=>
    object(SimpleXMLElement)#2 (0) {
    }
  }
  ["ProcessOutputs"]=>
  object(SimpleXMLElement)#4 (1) {
    ["Output"]=>
    object(SimpleXMLElement)#5 (2) {
      ["comment"]=>
      object(SimpleXMLElement)#6 (0) {
      }
      ["ComplexValueReference"]=>
      object(SimpleXMLElement)#7 (1) {
        ["@attributes"]=>
        array(3) {
          ["encoding"]=>
          string(5) "utf-8"
          ["format"]=>
          string(9) "image/png"
          ["schema"]=>
          string(0) ""
        }
      }
    }
  }
}

As you can see, ows:reference attribute, is skipped.

Thx
Luca


-- 
Edit bug report at http://bugs.php.net/?id=39268&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39268&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39268&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39268&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39268&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39268&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39268&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39268&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39268&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39268&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39268&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39268&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39268&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39268&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39268&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39268&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39268&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39268&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39268&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39268&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39268&r=mysqlcfg

Reply via email to