-
Hi ! Sorting the sdkFields by id, it comes before the attribute. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In the SDK xsds have no notion of attribute order, I also do no think that XML attributes have a notion of order at all. |
Beta Was this translation helpful? Give feedback.
In the SDK xsds have no notion of attribute order, I also do no think that XML attributes have a notion of order at all.
Attributes are key/value (get or set by attribute name), and I have never seen any program rely on the XML attribute order.
For the order of elements, you must rely on the the SDK xsd order (sequences), this will be easier to do once SDK 1.6 comes out:
https://github.com/OP-TED/eforms-notice-editor/blob/develop/src/test/java/eu/europa/ted/eforms/noticeeditor/helper/notice/NoticeXmlTagSorterTest.java (note that the Java package location may change later)