11-09-2010 08:34 AM
Hello,
How do i convert an .txt file into an .xml file using labVIEW function?.
Also i do i extract the header from the text file.
My file format is mentioned in attached .txt file.
Also I need to extract the header from the converted .xml file.
Anticipating reply
11-09-2010 10:38 AM
There is no automatic mechanism for converting a .txt file to XML in any language. You have to define the XML schema and then write the code to generate the XML file. You could also read in your text file into some form of structure and then use the Flatten to XML functions to use the NI XML schema. If you need to use your own XML schema then you would need to use the XML Parser VIs to generate your XML file. Alternatively, you could use LabXML or JKI's EasyXML Toolkit.