-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML document import not working for text elements #340
Comments
are you trying to import this as "system view" or as "document view"? |
It gets auto imported as document view (ends up in function importDocumentView). Seems something weird happens here somewhere:
|
it looks like we missed to implement handling of text nodes in the document view parser. according to https://docs.adobe.com/docs/en/spec/jcr/2.0/11_Import.html we should create a node jcr:xmltext with a property jcr:xmlcharacters. do you want to implement this? i think we can simply add a check after the while ELEMENT before the if ! END_ELEMENT and create the text child node. would need to keep track of the nodes we create in the self::importDocumentView so we can attach it to the right place. a first step would be to modify the test in https://github.com/phpcr/phpcr-api-tests/ so that it contains a string content and see it fail, then make it work... |
It would be very nice if this can be implemented. Would help out if I can, but this is a bit beyond me, unfortunately. |
Hi when I try to import XML with tags like this one (I am using jackalope-doctrine-dbal in Symfony):
<title>HarryPotter</title>
I get the following error:
If I do a $xml->isValid just before that line, it returns true. So what is wrong? Bug?
This is the XML doc I try to import for testing:
The text was updated successfully, but these errors were encountered: