Community
Participate
Working Groups
For XML files serialized using the class ExtendedXMLSaveImpl a certain order of the XML root element attributes is established. The current order of the standard namespace and schema related attributes is: - xmlns:xsi - xmlns - xsi:schemaLocation This order does not match the order which is produced by common DOM implementations and also JDOM, e.g. Xerces uses an alphabetical order of the attributes [1]. The ordering mismatch produces undesirable side-effects if XML files are processed using other tools/parsers. This might also be done as part of automated testing where test files are processed using DOM/JDOM and text comparison is used for assertations. The ordering established by ExtendedXMLSaveImpl should be adjusted to be: - xmlns - xmlns:xsi - xsi:schemaLocation Please note that the wrong order is only produced by ExtendedXMLSaveImpl if it operates in a non-DOM mode (toDOM=false). [1]: http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/dom/NamedNodeMapImpl.html
Class org.eclipse.sphinx.emf.resource.ExtendedXMLSaveImpl was adjusted to desired order of root attributes.
Mass-closing Resolved tickets