Issues with fields having similar relative xPaths. #445
-
Hi all, VALID XML
INVALID XML
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
this is quite tricky. I used whole xPathRelative as identificator of "forks" where i create whole new node child parallel to any other existing childs within parent node. And well they are technically not repeatable. They are simply diference with just different attributes. Thats it. There are just few situations of this. There is my list of patterns i identity during creating XML cbc:Xyz -> field value is element value and so far this is what created me valid XML (CVS answer success) which is possible to submit via API. |
Beta Was this translation helpful? Give feedback.
-
I had a look at this and after checking with a colleague I also think that for field relative xpath it should not try to reuse existing elements, it should just recreate the entire relative path. |
Beta Was this translation helpful? Give feedback.
I had a look at this and after checking with a colleague I also think that for field relative xpath it should not try to reuse existing elements, it should just recreate the entire relative path.
By doing this as you said you would end up with valid XML.
I will later update the editor demo project to reflect this change, you can see it applied in this branch:
https://github.com/OP-TED/eforms-notice-editor/tree/feature/fix-xsd-path-loading