From: hieu at laposte dot net Operating system: windows xp PHP version: 5.0.2 PHP Bug Type: XML related Bug description: SimpleXML : tags with "xs:" prefix
Description: ------------ When the xml file contains this "xs:" prefix, the file is not correctly parsed. Reproduce code: --------------- The XML file is : <?xml version="1.0" encoding="utf-16" ?> <xs:schema id="ds" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="ds" msdata:IsDataSet="true" msdata:Locale="fr-FR"> <complexType> ... </xs:element> </xs:schema> Php 5 code : $oXml = simplexml_load_file($sFileName); print_r($oXml->element); // doesn't work, nothing printed... PS : this code works correctly : $oXml = simplexml_load_file($sFileName); $aXml = get_object_vars($oXml); print_r($aXml['element']); // ok i can now access the "element". Expected result: ---------------- SimpleXMLElement Object ( [complexType] => SimpleXMLElement Object ( ..... ) ) Actual result: -------------- SimpleXMLElement Object ( ) -- Edit bug report at http://bugs.php.net/?id=30920&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30920&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30920&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30920&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30920&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30920&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30920&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30920&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30920&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30920&r=support Expected behavior: http://bugs.php.net/fix.php?id=30920&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30920&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30920&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30920&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30920&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30920&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30920&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30920&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30920&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30920&r=mysqlcfg