Skip to content

Transmission toXML method output invalid XML with some Java locales #90

@KasMA1990

Description

@KasMA1990

When setting a transmission in service request, you can specify the period (type: double), if you want to pull data periodically.

When generating the XML for a transmission though, the Java DecimalFormat is used in way that is locale dependent. So in my locale (Denmark), the period will be formatted with a comma (10,0) instead of a dot (10.0). This is not legal for the XSD ( http://books.xmlschemata.org/relaxng/ch19-77065.html ), so the receiver of my service request will not understand the XML I'm outputting.

Using DecimalFormatSymbols could be the correct solution ( http://stackoverflow.com/questions/5054132/how-to-change-the-decimal-separator-of-decimalformat-from-comma-to-dot-point )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions