|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39268 SimpleXML doesn't parse attributes with : inside
Submitted: 2006-10-26 16:34 UTC Modified: 2006-10-26 18:25 UTC
From: luca dot casagrande at gmail dot com Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.1.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: luca dot casagrande at gmail dot com
New email:
PHP Version: OS:


 [2006-10-26 16:34 UTC] luca dot casagrande at gmail dot com
I am trying to parse an xml with simplexml;

This is the XML file:
<ExecuteResponse version="0.4.0" xsi:schemaLocation="">
				Resulting output map
<!--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=""/>

This is the dump of the xml obj:

object(SimpleXMLElement)#1 (3) {
  array(1) {
    string(5) "0.4.0"
  object(SimpleXMLElement)#3 (1) {
    object(SimpleXMLElement)#2 (0) {
  object(SimpleXMLElement)#4 (1) {
    object(SimpleXMLElement)#5 (2) {
      object(SimpleXMLElement)#6 (0) {
      object(SimpleXMLElement)#7 (1) {
        array(3) {
          string(5) "utf-8"
          string(9) "image/png"
          string(0) ""

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



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-26 18:25 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Try 5.2 and use the namespace parameters of the access functions. In 5.1 you need to register the namespace you want to access. Try that as well, it should solve your problem immediatley if you know the namespaces.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 18:01:35 2024 UTC