04-22-2010 11:42 AM
Smercurio_
Good points all! and no- I like XML fine but chose not to use it for data the I may want to re-use in other development enviornments. If I worked eslewhere where we didn't code in just about any language well. I'd probably flip sides.
And yes- my opinion of openG could be applied to any open source community. my SSP is a good investment for my companies needs.
04-22-2010 12:03 PM
Jeff Bohrer wrote:Smercurio_
Good points all! and no- I like XML fine but chose not to use it for data the I may want to re-use in other development enviornments. If I worked eslewhere where we didn't code in just about any language well. I'd probably flip sides.
Not to belabor the point, but this makes absolutely no sense. XML can be read in every language - it's just a text file. Modern languages make it easier by having libraries specifically suited for reading XML using a DOM. For instance, I can create an XML file in LabVIEW and read it using, for example, C# just fine. The converse is also true.
I suspect your decision/bias is based solely on the LabVIEW XML schema, which is what is used if you use the Flatten to XML String functions. The XML file that is generated can still be read in with other programming languages. They won't have an equivalent function such as Unflatten from XML but that doesn't matter since you can simply read the XML file using the standard functions. In the reverse, if you create an XML file from, say, C# (or C, or VB, or whatever), the XML can be read in LabVIEW using the XML Parser VIs. The latter is more akin with what you do in "just about any language" anyway.
04-23-2010 07:52 AM
I am late to this party but would like to bring up a few more options, and why they should be considered. Text based files are cross-platform and (usually) human-readable, but they also have major disadvantages.
What are the alternatives for structured data?