protocol Posted August 23, 2010 Report Share Posted August 23, 2010 Hi, what is the current status of XML support in LV, e.g. if I want to parse an arbitrary XML file? It does not work for me on LV-RT Thanks. Quote Link to comment
PaulL Posted August 23, 2010 Report Share Posted August 23, 2010 We do use the Read From XML File Unflatten From XML functions in RT (2009 SP1 on VxWorks for the moment) to read configuration files and these work fine. (These just support the LabVIEW XML schema.) Are you trying to use the XML Parser VIs, then? Quote Link to comment
protocol Posted August 24, 2010 Author Report Share Posted August 24, 2010 We do use the Read From XML File Unflatten From XML functions in RT (2009 SP1 on VxWorks for the moment) to read configuration files and these work fine. (These just support the LabVIEW XML schema.) Are you trying to use the XML Parser VIs, then? Yes. Quote Link to comment
Christian_L Posted August 24, 2010 Report Share Posted August 24, 2010 The XML Parser in LabVIEW is based on DOM so it doesn't work in LV RT unfortuantely. As Paul mentioned the Read From XML File Unflatten From XML functions, that use the LV schema, do work in LV RT. In addition there are a couple of other tookits available that will work in LV RT and use their own schema. In the case of GXML the source code is open so you can adjust the schema to your needs. However, it is designed to store and load LabVIEW data (clusters), so typically the XML structure will be similar to the data structure in a LabVIEW cluster. EasyXML: http://jkisoft.com/easyxml/ GXML: http://zone.ni.com/devzone/cda/epd/p/id/6330 I'm not aware of a true generic XML parser that works in LV RT, though you could use the GXML parser code as a start and write one. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.