ID:               38949
 Updated by:       [EMAIL PROTECTED]
 Reported By:      superruzafa at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         DOM XML related
 Operating System: Windows XP
 PHP Version:      5.1.6
-Assigned To:      
+Assigned To:      rrichards


Previous Comments:
------------------------------------------------------------------------

[2006-09-25 14:18:43] superruzafa at gmail dot com

Description:
------------
Surely this is not a bug, because is too obvious, Perhaps is a fault of
W3C spec.

I have a xml file, and I try to parse to get xmlns's attributes.
Simplely:

[test.xml]

<?xml version="1.0" encoding="utf-8" ?>
<root xmlns="http://ns"; xmlns:ns2="http://ns2";>
    <ns2:child />
</root>

Reproduce code:
---------------
$xml=new DOMDocument();
$xml->load("test.xml");

echo $xml->documentElement->getAttribute("xmlns");



Expected result:
----------------
"http://ns";

Actual result:
--------------
""


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38949&edit=1

Reply via email to