Comments (4)
I am not an XML expert but I think the "," as decimal separator is not allowed.
E.g. http://books.xmlschemata.org/relaxng/ch19-77095.html
writes: "The decimal separator is always a point (.), and no thousands separator may be added."
I can replace in the input string the "," by ".". That might work if no "thousands separator" is used.
What tool has created this CID file?
from libiec61850.
If the data type of tVal had been xsd:float, you'd be right. But, referring to IEC61850-6, the type is and extension of xs:normalizedString, that is...a string (http://books.xmlschemata.org/relaxng/ch19-77263.html). I only found this on the standard.
The CID file seems created by Kalkitech SCL Manager IEC61850 Configuration Tool.
from libiec61850.
I had a look in 61850-6. It is a bit confusing. In section 9.5.4.1 it is specified that a "Val" element representing a float has to follow the XML schema xs:double. Therefore the "." would be mandatory as decimal separator. But in the same row it uses "999,99999" as an example ;-) So the standard is not consistent.
I think the best would be to replace "," by "." before parsing.
from libiec61850.
Thanks
from libiec61850.
Related Issues (20)
- MinGW64 doesn't output libiec61850.dll - only static libiec61850.a is produced --> Solved HOT 1
- SegmentFault in mmsServer_handleDeleteNamedVariableListRequest in src/mms/iso_mms/server/mms_named_variable_list_service.c:146 HOT 1
- NULL Pointer Dereference was detected in the mmsServer_handleFileCloseRequest.c function of src/mms/iso_mms/server/mms_file_service.c. HOT 4
- TLS RELATED ISSUES
- GetDataSetDirectoryAsync got System.AccessViolationException HOT 7
- Error when writing all array elements at once HOT 1
- Client Report Handler in Python HOT 1
- NBReports generated despite IedServer_lockDataModel(), IedServer_lockDataModel() HOT 2
- Structure data object from MmsVariableSpecification is diffrent with value when received dataset from rcb HOT 3
- iec61850_client_example_files: Failed to get file!
- Incompatibility between 1.5.1 and 1.5.3
- heap-buffer-overflow in BerEncoder_encodeLength of /src/libiec61850/src/mms/asn1/ber_encoder.c HOT 1
- MmsValue_encode/decodeMmsData fails on Visible String attribute with empty payload
- Is there any peach pits to describe this protocol?
- libiec61850-1.5 goose build fail HOT 1
- Out-of-Bound Read in /src/libiec61850/src/goose/goose_receiver.c:665:9 in parseGoosePayload
- Out-of-Bound Read in BerDecoder_decodeBoolean /src/libiec61850/src/mms/asn1/ber_decode.c:218:9 HOT 1
- Multiple Out-of-Bound Read in parseAarqPdu /src/libiec61850/src/mms/iso_acse/acse.c HOT 1
- Out-of-Bound Read in parseAarePdu /src/libiec61850/src/mms/iso_acse/acse.c:215:17 HOT 1
- Integrate Fuzzers into OSS-Fuzz and Expand Fuzzing Coverage HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libiec61850.