JKI-EasyXML icon indicating copy to clipboard operation
JKI-EasyXML copied to clipboard

Missing values return blank rather than the default values

Open SimonFransen opened this issue 7 years ago • 2 comments

Hi,

With regard to the below functionality:

In the case where there are elements or attributes present in the LabVIEW that are not present in the XML data, then the output LabVIEW data will contain the same values passed into the Data Type and Default Value (variant) input - this is a "best attempt".

When I enter default values into the Labview Data (Type) connector on the Easy Parse XML VI, I am returned blank values rather than the default values when an element is missing in the XML String.

Is there a step that I am missing or is this a bug?

image

Thanks for putting together this awesome tool.

Regards, Simon

SimonFransen avatar Aug 08 '17 04:08 SimonFransen

Hi , Do we have solution for this issue?

saranv1988 avatar Feb 27 '18 08:02 saranv1988

Hi,

very nice tool! This is the only feature that is missing for me. I have to handle optional integer fields, but currently I cannot distinguish between a zero integer field defined on the input and a missing parameter.

Do you know a workaround for this issue? Or do you plan to implement this future in the near feature?

UPDATE: A workaround can be that I use everywhere string type, and I do the type check and cast in the code. Is it correct?

viltbalint avatar Apr 23 '21 10:04 viltbalint