-
Notifications
You must be signed in to change notification settings - Fork 123
Convert with plugin line to xerces #1451
Comments
I checked how the line plugin saves its content, and apparently it saves the input as an array of lines, so if we assume user/test/line as the basis, we get
but as line is the root element in this case, and there can be only one root, this is currently incompatible with the xerces plugin. I'd have to create a workaround to treat the root element differently in case its an array, but I'm not sure if this is a good idea to do. The data represented here is just not naturally suited to the xml format due to several root elements. I found out this always happens with the line plugin because even if there is only 1 line it saves it as an array. If you think it makes sense i can make a workaround that allows arrays with 1 element as being the root key for the export. If we decide to leave it like it is, i'd add this hint to the limitations of the readme though. |
Yes, leave like it is. Please document the limitation and also link here. We could extend the |
…dd root element array limitation note to readme ElektraInitiative#1451
updated documentation including link to here in #1450 |
…dd root element array limitation note to readme ElektraInitiative#1451
I tried to convert a snippet on the website, but got the error: CONVERT_UNABLE_TO_CONVERT_SNIPPET
Used plugins
Input configuration
Last output configuration
Additional information
The text was updated successfully, but these errors were encountered: