<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reference Library for Converting Between LabVIEW and XML Data (GXML) in Components</title>
    <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146073#M459</link>
    <description>&lt;P&gt;How do I use GXML to convert clusters that are bundled up programmatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, I have a large amount of clusters that get bundled up during runtime and later bundled together. &amp;nbsp; Is there a nice way to use GXML to convert them?&amp;nbsp; Unfortunately because they are bundled at runtime, the clusters do not have names and I get the error: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;gxml_Builder.vi &amp;lt;ERR&amp;gt;Cluster item '' has an invalid name.&amp;nbsp; Each name must begin with a letter and subsequent characters may be letters, digits, a period, a dash, or an underscore.&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;See the attached for some sample code.&amp;nbsp; I would love to change the cluster name during runtime, but that's not allowed either.&amp;nbsp; I suppose I could set up individual cluster structures that I could later stuff as I get values, but that's a lot of work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any nice way to get this to work?&amp;nbsp;&amp;nbsp; Example code would be great, as I'm still new at this. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2010 00:40:10 GMT</pubDate>
    <dc:creator>Yee</dc:creator>
    <dc:date>2010-06-11T00:40:10Z</dc:date>
    <item>
      <title>Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1041232#M324</link>
      <description>&lt;P data-unlink="true"&gt;&lt;SPAN class="noindex"&gt;Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML)&amp;nbsp;in this thread.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="noindex"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="noindex"&gt;The latest version of the &lt;A href="vipm://ni_lib_gxml" target="_blank" rel="noopener"&gt;NI GXML Library&lt;/A&gt; is availble in VIPM on the NI LabVIEW &amp;nbsp;Tools Network repository.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 21:11:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1041232#M324</guid>
      <dc:creator>ninjaphil</dc:creator>
      <dc:date>2024-02-29T21:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1041698#M326</link>
      <description>&lt;P&gt;I am unable to parse a simple xml file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;BR /&gt;&amp;lt;Timerscript&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Options Units="Ticks" MaskHex="F" FlickerHex="F" SaveLastFew="F" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Revisions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R0&amp;gt;Revision: 0, 3/27/2006 1:58:21 PM: Initial&amp;lt;/R0&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R1&amp;gt;Revision: 1, 3/27/2006 2:04:28 PM: Pruned out some junk&amp;lt;/R1&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R2&amp;gt;Revision: 2, 3/27/2006 2:06:58 PM: Added a GO command&amp;lt;/R2&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R3&amp;gt;Revision: 3, 3/27/2006 2:18:26 PM: Fixed GO&amp;lt;/R3&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R4&amp;gt;Revision: 4, 3/27/2006 2:20:14 PM: add sched4 freerun&amp;lt;/R4&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R5&amp;gt;Revision: 5, 3/27/2006 8:57:55 PM: Added CONTINUOUS task&amp;lt;/R5&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R6&amp;gt;Revision: 6, 3/28/2006 5:31:06 PM: First whack at series task&amp;lt;/R6&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R7&amp;gt;Revision: 7, 3/28/2006 5:34:15 PM: some tweaks&amp;lt;/R7&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R8&amp;gt;Revision: 8, 3/28/2006 5:45:15 PM: Added flicker&amp;lt;/R8&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;R9&amp;gt;Revision: 9, 3/28/2006 7:54:06 PM: MaskFix&amp;lt;/R9&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/Revisions&amp;gt;&lt;BR /&gt;&amp;lt;/Timerscript&amp;gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2009 14:31:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1041698#M326</guid>
      <dc:creator>dotan</dc:creator>
      <dc:date>2009-12-17T14:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1041767#M327</link>
      <description>&lt;P&gt;Hello dotan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GXML will not parse any XML string, pretty much only XML strings created by GXML.&amp;nbsp; The purpose is to encode arbitrarily complex LabVIEW data structures into a human readible format that can be parsed and brought back into LabVIEW as a user-defined data structure.&amp;nbsp; If you can represent this data as a LabVIEW cluster then GXML could be used to encode and parse that data. Sorry for the confusion.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;NI Systems Engineer&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2009 15:45:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1041767#M327</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2009-12-17T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1058175#M344</link>
      <description>GXML parse "LabView"XML. It is nice, but is any easy solution, how parse (read and write)&amp;nbsp;common XML via LabVIEW?</description>
      <pubDate>Fri, 22 Jan 2010 09:01:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1058175#M344</guid>
      <dc:creator>Řeřicha</dc:creator>
      <dc:date>2010-01-22T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1058436#M347</link>
      <description>&lt;P&gt;You can use the XML Parser VIs and functions available in LabVIEW to parse any generic XML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With XML able to represent any generic data, which may not be easily represented by standard LabVIEW data types, it generally is not a trivial matter to parse any XML that you may encounter. It is much more common to use a predefined XML schema as part of your application and build a parser using these functions for your specific needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/9616i65FA25F2559BC9EF/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="xmlparser.PNG" title="xmlparser.PNG" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2010 15:50:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1058436#M347</guid>
      <dc:creator>Christian_L</dc:creator>
      <dc:date>2010-01-22T15:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1067469#M349</link>
      <description>Does the GXML reference library handle units that are used with numerical indicators? If so, are they output as XML attributes or elements?</description>
      <pubDate>Sat, 06 Feb 2010 12:36:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1067469#M349</guid>
      <dc:creator>Brad_B.</dc:creator>
      <dc:date>2010-02-06T12:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1067601#M350</link>
      <description>&lt;P&gt;Hello Brad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No currently it does not generate XML for the numerical units.&amp;nbsp; If I were to add it though I would prefer to do it as an attribute, perhaps right after the datatype attribte.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The VI which decodes the type descriptors from the variant data type is:&lt;/P&gt;&lt;P&gt;vi.lib\Utility\VariantDataType\GetNumericInfo.vi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears there is an output for units though I haven't played with it yet.&amp;nbsp; I would experiment with this output and see if it supports custom units.&amp;nbsp; If it did work then it would go in the "gxml_UnflattenandScanItem" subVI in the cases that handle numeric datatypes.&amp;nbsp; It would be a pretty simple modification.&amp;nbsp; If you invest any time in it let me know and I may add it to a future release of the reference library.&amp;nbsp; I'll look into it myself when I get some time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;Systems Engineer - Sound and Vibration&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2010 19:29:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1067601#M350</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2010-02-07T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1067709#M351</link>
      <description>&lt;P&gt;Hi Jeff,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've fired up an evaluation version of&amp;nbsp;LabVIEW 2009 and&amp;nbsp;provided the GXML VI with&amp;nbsp;a cluster with a numerical control and units as a quick test. An error exception is thrown from the "gxml_builder.vi" with possible reason "Item has an unsupported datatype (Double float with unit). I tried to dive down in to the library you mention but can't get inside as it is password locked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're quite interested in&amp;nbsp;passing the&amp;nbsp;numerical&amp;nbsp;units to the XML file, but are still weighing up the implications of storage as an attribute vs. an element. It certainly seems to be a case you can argue either way!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We'd certainly be interested in seeing the handling of units addressed in a future release as we have an immediate need to do such.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2010 07:16:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1067709#M351</guid>
      <dc:creator>Brad_B.</dc:creator>
      <dc:date>2010-02-08T07:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1068098#M352</link>
      <description>&lt;P&gt;Ah LabVIEW treats it is its own data type.&amp;nbsp; So we&amp;nbsp;would simply need to add a case to accept this new data type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initial tests&amp;nbsp;looks&amp;nbsp;promising.&amp;nbsp; One question though.&amp;nbsp; In the example I attached I use a unit of "Pascals".&amp;nbsp; The GetNumericInfo.vi treats that as kg/(ms^2) so I would be inclined to encode the attribute that way.&amp;nbsp; Would you consider this&amp;nbsp;expected or would you expect the XML string to report Pascals?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;Systems Engneer - Sound and Vibration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2010 16:55:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1068098#M352</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2010-02-08T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1068483#M353</link>
      <description>&lt;P&gt;I'd expect the XML string to be consistent with the input units rather than expressing in what looks to be like the 7 base SI units. Probably makes things a little bit more complex on your end unfortunately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any chance of swaying you to use an&amp;nbsp;XML&amp;nbsp;element instead of an attribute?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2010 04:11:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1068483#M353</guid>
      <dc:creator>Brad_B.</dc:creator>
      <dc:date>2010-02-09T04:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1068864#M354</link>
      <description>&lt;P&gt;I would encourage you to make the modifications yourself.&amp;nbsp; My intention was to give the reference library enough framework and documentation that an end user could add features like this with minimal effort. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am not&amp;nbsp;in a position to develop new features in the near future but I am happy to answer any questions you may have about modifying the library.&amp;nbsp; The generation side of things would be pretty simple (like you pointed out though we would need&amp;nbsp;some&amp;nbsp;kind of look up table to preserve the input units in the XML string).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI&amp;nbsp;I also looked at the LabVIEW flatten to XML and EasyXML but neither of them support numeric with units either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;Systems Engineer - Sound and Vibration&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:42:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1068864#M354</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2010-02-09T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1081375#M379</link>
      <description>Does &lt;SPAN style="font-weight: bold"&gt;the &lt;/SPAN&gt;Reference Library for Converting Between LabVIEW and XML Data (GXML) work under Linux?</description>
      <pubDate>Mon, 01 Mar 2010 20:06:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1081375#M379</guid>
      <dc:creator>J.M.N.</dc:creator>
      <dc:date>2010-03-01T20:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1081491#M380</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not tested this on LabVIEW for Linux but the entire reference library is written in LabVIEW code.&amp;nbsp; The reference library uses native recursion (supported only on LV 2009) and leans very heavily on the library VariantType.lvlib found at \LabVIEW 2009\vi.lib\Utility\VariantDataType.&amp;nbsp; If this library exists then you should be in good shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;Systems Engineer - Sound and Vibration&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2010 22:36:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1081491#M380</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2010-03-01T22:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1115474#M417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm exploring options to share data via XML between LabVIEW and other components for a new project. I'm experimenting with both the standard 'Flatten to XML' function and GXML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The GXML-generated XML is more terse, and would be practically preferable, but I fail to understand two points:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The statement made above in this thread, that "&lt;SPAN class="noindex"&gt;GXML will not parse any XML string, pretty much only XML strings created by GXML&lt;/SPAN&gt;". It does seem that the GXML parser refuses to parse attributes that are not separated by CRLF (as such it is not an XML 1.0 compliant processor, see &lt;A href="http://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends" target="_blank"&gt;http://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends&lt;/A&gt;), but why would one then choose XML at all to share data between LabVIEW and LabVIEW? There are plenty of (possibly more efficient) data serialization alternatives within LabVIEW. &lt;/LI&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI&gt; Probably a consequence of (1): why, unlike the case of 'Flatten to XML', is the XML schema for GXML not published?&amp;nbsp; &lt;BR /&gt;LVXMLSchema.xsd does specify all data just as plain xsd:string&lt;EM&gt;s&lt;/EM&gt;, but at least provides the list of allowable data types and structures.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd vastly prefer not having to develop yet another custom VI to serialize LabVIEW data over XML, but the downsides of both "Flatten to XML" and GXML may leave no other viable option. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francesco Prelz&lt;/P&gt;&lt;P&gt;INFN - Milan, Italy &lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 08:24:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1115474#M417</guid>
      <dc:creator>Francesco_P.</dc:creator>
      <dc:date>2010-04-21T08:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1115772#M420</link>
      <description>&lt;P&gt;Francesco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the feedback.&amp;nbsp; With this component it was my intention to make a more "terse" version of the &lt;EM&gt;LabVIEW Flatten to XML&lt;/EM&gt; VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I think you are right that the XML parser is not compliant to section 2.11 of the XML spec.&amp;nbsp;&amp;nbsp;The parser does&amp;nbsp;specifically looking for a #D#A and this appears to be an oversight on my part.&amp;nbsp; Please confirm for me, the specifcation is saying that the XML parser should be able to recognize&amp;nbsp;three possibilities as&amp;nbsp;an "end of line" character:&amp;nbsp;#D#A, #D, or #A.&amp;nbsp; Am I reading this right?&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings&amp;nbsp;and the&amp;nbsp;datalog binary format.&amp;nbsp; XML is slower than&amp;nbsp;these optons but&amp;nbsp;the upside is that&amp;nbsp;it is human readable.&amp;nbsp;&amp;nbsp;Furthermore XML is&amp;nbsp;inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc.&amp;nbsp; If you don't care about human readability then you are correct XML doesn't make as much sense.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;I will return to the GXML source code and try to fix this in the near future but I would hope that&amp;nbsp;instead of creating yet another custom VI from scratch that you could reuse what I have provided for you.&amp;nbsp; I included enough documentation in the source code so that users could make some modificiations themselves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;The target application for this reference library was LabVIEW to LabVIEW communication.&amp;nbsp; As such I documented the schema on the dev zone document from a LabVIEW perspective.&amp;nbsp; It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.)&amp;nbsp; I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were there any other downsides to GXML that I have missed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;Systems Engineer - Sound and Vibration&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Jeff T. on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-21-2010&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 10:09 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Apr 2010 15:09:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1115772#M420</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2010-04-21T15:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1115847#M421</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN class="noindex"&gt;&lt;P&gt;&lt;SPAN class="noindex"&gt;Please confirm for me, the specifcation is saying that the XML parser should be able to recognize&amp;nbsp;three possibilities&lt;BR /&gt;as&amp;nbsp;an "end of line" character:&amp;nbsp;#D#A, #D, or #A.&amp;nbsp; Am I reading this right?&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The spec says that all combinations should be converted to linefeed
(#A), which is in practice the same as saying that all those
combinations represent valid end-of-line sequences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This said, always according to the same spec (&lt;A href="http://www.w3.org/TR/2008/REC-xml-20081126/#sec-element-content" target="_blank"&gt;http://www.w3.org/TR/2008/REC-xml-20081126/#sec-element-content&lt;/A&gt;) the use of any whitespace in XML nodes that have 'element content' (i.e. they only contain other XML elements) is optional. So I believe that the parser should discard any particular combination of whitespace (including line feeds) when parsing the contained elements.&lt;/P&gt;&lt;P&gt;In other words, there should be no -required- line feeds separating the various attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll take your suggestion to look at the source and see if it can be adapted as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francesco Prelz&lt;/P&gt;&lt;P&gt;INFN - Milan, Italy &lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2010 16:13:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1115847#M421</guid>
      <dc:creator>Francesco_P.</dc:creator>
      <dc:date>2010-04-21T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146073#M459</link>
      <description>&lt;P&gt;How do I use GXML to convert clusters that are bundled up programmatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, I have a large amount of clusters that get bundled up during runtime and later bundled together. &amp;nbsp; Is there a nice way to use GXML to convert them?&amp;nbsp; Unfortunately because they are bundled at runtime, the clusters do not have names and I get the error: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;gxml_Builder.vi &amp;lt;ERR&amp;gt;Cluster item '' has an invalid name.&amp;nbsp; Each name must begin with a letter and subsequent characters may be letters, digits, a period, a dash, or an underscore.&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;See the attached for some sample code.&amp;nbsp; I would love to change the cluster name during runtime, but that's not allowed either.&amp;nbsp; I suppose I could set up individual cluster structures that I could later stuff as I get values, but that's a lot of work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any nice way to get this to work?&amp;nbsp;&amp;nbsp; Example code would be great, as I'm still new at this. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 00:40:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146073#M459</guid>
      <dc:creator>Yee</dc:creator>
      <dc:date>2010-06-11T00:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146646#M461</link>
      <description>&lt;P&gt;I recommend making a type definition cluster and bundling your elements by name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/02db8683ecb8dcc8e926ee3838c9d3975db417c4/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f313635333069423936313938394634453634443437312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="BundleByName.png" title="BundleByName.png" align="CENTER" /&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way you have the ability to name the encapsulating datatypes. You will need a typedef anyway to parse the data in LabVIEW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Tipps&lt;/P&gt;&lt;P&gt;S&amp;amp;V Systems Engineer &lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 16:37:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146646#M461</guid>
      <dc:creator>Jeff_T.</dc:creator>
      <dc:date>2010-06-11T16:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146702#M462</link>
      <description>&lt;P&gt;Hi Jeff!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the solution! &amp;nbsp; Yes, I'll do that.&amp;nbsp; I was hoping GXML could typedef and name everything itself (and be more flexible) but this certainly will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 17:49:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146702#M462</guid>
      <dc:creator>Yee</dc:creator>
      <dc:date>2010-06-11T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Library for Converting Between LabVIEW and XML Data (GXML)</title>
      <link>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146722#M463</link>
      <description>&lt;P&gt;Is there a nice way to hack the VI&amp;nbsp;&amp;nbsp; gxml_NameFilter to assign unique XML member names to unnamed LabView items?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, attached is my attempt to assign a unique name based on the time stamp that the subVI is called.&amp;nbsp; Unfortunately LabView seems to call this VI simultaneously for different items, giving the XML items non-unique names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp;&amp;lt;Item0634.7842 mems='2'&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Item0634.7842 mems='2'&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Transmit_High_Voltage type='U16'&amp;gt;140&amp;lt;/Transmit_High_Voltage&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Verilog_Var type='String'&amp;gt;pioBurst&amp;lt;/Verilog_Var&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/Item0634.7842&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Item0634.7842 mems='3'&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Burst_Number_of_Pulses type='U8'&amp;gt;1&amp;lt;/Burst_Number_of_Pulses&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Verilog_Var2 type='String'&amp;gt;pioBurst&amp;lt;/Verilog_Var2&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Boolean type='Bool'&amp;gt;FALSE&amp;lt;/Boolean&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/Item0634.7842&amp;gt;&lt;BR /&gt;&amp;lt;/Item0634.7842&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2010 18:09:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-p/1146722#M463</guid>
      <dc:creator>Yee</dc:creator>
      <dc:date>2010-06-11T18:09:26Z</dc:date>
    </item>
  </channel>
</rss>

