09-27-2014 05:45 PM - edited 09-27-2014 05:46 PM
Hi every one,
I am trying to read the XML file I get from my SPOT GPS, but I am not good at this, I have try to do simple VI but it wont work 😞
// Lars
09-27-2014 08:13 PM
"It doesn't work" isn't very descriptive. How is it not working? Do you get error messages?
09-28-2014 05:54 AM
Sorry for the short question, I have try to get this to work, I get : Error 1103 occurred at Unflatten From XML in Untitled 2,
Possible reason(s): LabVIEW: The XML tag describing the type of data is not recognized.
// Lasse
09-28-2014 07:00 AM
Your XML is not made with LabVIEW, and LabVIEW can't transform it into a cluster.
LabVIEW does not know how to, as there are no information about datatypes in the XML.
You need to contruct your own file translater. You can use the basic XML functions for that.
09-29-2014
08:14 AM
- last edited on
06-18-2025
08:07 AM
by
Content Cleaner
Hello,
Have you already had a look at the following example from the NI Example Finder? (Help>Find Examples...)
"Load XML with Parser API.vi"
This VI can already give you an idea on how to create your own parser.
Do all of your produced/used xml-files have the same structure?
Can you share a first try based on the example above?
PS: This page might provide some interesting information about creating XML files from LabVIEW clusters (the opposite of what you are looking for):
https://forums.ni.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-...