04-24-2012 05:56 AM - edited 04-24-2012 05:57 AM
I have this problem in Labview 2011: I have an old XML file created with Labview blocks from a cluster. Now I need to modify that cluster adding some variables inside. How can I insert the variables in the XML file (with a default value) without throwing away all the old data?
I need a universal method and I know that won't be simple, but I'll appreciate teh simplest.
Thank you in advance
04-24-2012 07:43 AM
There is no "universal" method.
You have two choices:
04-26-2012 02:45 AM
Is there an example to compare two XMLs and adding in one of the two the differences? I'm using the Labview structure and I would be able to modify manually the XML, but some users of the application could not. In my opinion the modify should be too long manually. I'm using the parser to try an universal method to insert the differences. I appreciate some suggestions.
Thank you.
04-26-2012 03:48 AM
I'm not able to navigate inside clusters. How can I automatically have the referiments of all the elements of a cluster?
Thank you in advance.
04-26-2012 08:06 AM
@FabioBone wrote:
Is there an example to compare two XMLs and adding in one of the two the differences?
Not that I'm aware of. However, third-party programs are better suited to do this. Something like Beyond Compare.
I'm not able to navigate inside clusters. How can I automatically have the referiments of all the elements of a cluster?
I have no idea what this means. Can you please rephrase, or explain it differently?
04-26-2012 09:13 AM - edited 04-26-2012 09:15 AM
I don't know the structure of the cluster. In fact an user of the application could modify it and I would take all the elements of that cluster to compare with another one (the cluster before the modify). I know that is possible to take the referiment of the controls (so the referiment of a control cluster), but I am not able to take some referiment of the objects inside the cluster. Anyway, now, I convert the data structure to an XML and I use the Labview Parser in order to compare the data of the old data structure.