|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29798 SimpleXML xpath function can't hable SCORM manifest xml files
Submitted: 2004-08-23 15:26 UTC Modified: 2004-08-23 15:37 UTC
From: timo at hhesse dot de Assigned:
Status: Closed Package: SimpleXML related
PHP Version: 5.0.1 OS: Windows 2000
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: timo at hhesse dot de
New email:
PHP Version: OS:


 [2004-08-23 15:26 UTC] timo at hhesse dot de
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:
(i used the latest snapshots)

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

<manifest identifier="photo-MANIFEST-remediation" version="1.3"
    xsi:schemaLocation=" imscp_v1p1.xsd


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-23 15:37 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

you have a default namespace there, therefore normal xpath queries won't work.

you have to use registerXPathNamespace, which only will be available in PHP 5.1

see for more information.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 11:01:31 2024 UTC