From:             timo at hhesse dot de
Operating system: Windows 2000
PHP version:      5.0.1
PHP Bug Type:     SimpleXML related
Bug description:  SimpleXML xpath function can't hable SCORM manifest xml files

Description:
------------
I made several tests, but it seems like simpleXML->xpath() can't get along
with a well formed SCORM imsmanifest.xml file. I can't access the document
by xpath queries. result is always array(0). after removing all the
parameters of the root <manifest> element, it works.
Sample SCORM compatible xml files can be found here:
http://www.adlnet.org/index.cfm?fuseaction=DownFile&libid=641&bc=false
(i used the latest snapshots)

A typical root element of a manifest file looks like this:

<manifest identifier="photo-MANIFEST-remediation" version="1.3"
    xmlns="http://www.imsglobal.org/xsd/imscp_v1p1";
    xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_v1p3";
    xmlns:adlseq="http://www.adlnet.org/xsd/adlseq_v1p3";
    xmlns:imsss="http://www.imsglobal.org/xsd/imsss";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://www.imsglobal.org/xsd/imscp_v1p1
imscp_v1p1.xsd
                        http://www.adlnet.org/xsd/adlcp_v1p3
adlcp_v1p3.xsd
                        http://www.adlnet.org/xsd/adlseq_v1p3
adlseq_v1p3.xsd
                        http://www.imsglobal.org/xsd/imsss
imsss_v1p0.xsd">




-- 
Edit bug report at http://bugs.php.net/?id=29798&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29798&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29798&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29798&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29798&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29798&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29798&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29798&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29798&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29798&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29798&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29798&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29798&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29798&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29798&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29798&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29798&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29798&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29798&r=float

Reply via email to