Type of param $in for importXML(...) not precisely specified
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.
Updated by Karsten Dambekalns about 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.