Replies: 2 comments 3 replies
-
The XML standard does provides very strict guidance on how to handle the situation when the encoding is missing. According to the 1.0 specification, if the encoding declaration is missing, you simply have to assume UTF-8. That's all. Ignoring this standard and making somewhat strange assumptions about the encoding based on the file line endings and historical practices under Windows, is something I really do not recommend. |
Beta Was this translation helpful? Give feedback.
-
What I don’t understand: why does the L3D editor then need to be adjusted? Since you titled this discussion L3D Editor exports not well formatted XML. The L3D Editor doesn't provide any declaration, since it's encoding correctly to UTF-8. And correctly to the XML standard. It sounds to me like you should be getting in touch with your customers instead? |
Beta Was this translation helpful? Give feedback.
-
XML Declaration is missing in the structure.xml of L3D Editor saved files:
The XML declaration is optional but highly recommended, especially for documents that use encodings other than UTF-8 or UTF-16. If the XML document is encoded in UTF-8 (the default for many systems)
As well this file has \r\n line endings, which is a bit misleading, as this is typical for Windows, where UTF-8 (without BOM) is not usual.
So the XML Declaration at least would lead to the right direction...
Another strict point:
You export the missing Name as
Since Name is optional you should according to standards omit it completely IMHO.
Another point is the closing of the Tag:
should be
Both are valid XML, but W3C recommends the last one
Beta Was this translation helpful? Give feedback.
All reactions