Bug #3844

Type of param $in for importXML(...) not precisely specified

Added by Karsten Dambekalns over 12 years ago. Updated almost 11 years ago.

Should have
Start date:
Due date:
% Done:


Estimated time:


From David Buchmann:

i read through the session interface. it declares the method importXML($parentAbsPath, $in, $uuidBehavior);
the full definition is here: http://github.com/k-fish/PHPCR/blob/545b05799b99ba6aebacec95b10db5c2ce2c1c1d/Classes/SessionInterface.php
what type of resource is to be expected here? http://ch.php.net/resource lists several that would be thinkable: "domxml document" and "xml" as well as "stream" and maybe others (i am no streams expert). it would be useful to specify this exactly...

This applies to WorkspaceInterface and SessionInterface.

Related issues

Related to PHPCR - Task #5165: Make type for $out in XML export methods consistent with $in parameter in XML importResolvedKarsten Dambekalns2009-10-28


Updated by Karsten Dambekalns over 12 years ago

It would have to be a file stream to be close to the JSR-283 spec.

But from the viewpoint of a possibly performant implementation using XMLReader seems advisable - and for that a simple URI pointing to a file would be the easiest solution. A possible combination could be to hand in a file handle and then use stream_get_meta_data() to find out the URI for it.


Updated by Karsten Dambekalns over 12 years ago

It will be come a string representing an URI for our interfaces.


Updated by Karsten Dambekalns almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3363.

Also available in: Atom PDF