LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read xml file to table

Hi guys
 
I m trying to read a very big xml file to a table indicator in a labview
 
I had tried both read from xml.vi and read from spreadsheet.
 
Either of them gives me a lot of problem.
 
Can anyone of u help? I have also browse the example but in vain.
 
Can i have an example plss... very simple one...
 
 
 
0 Kudos
Message 1 of 14
(6,689 Views)

Hi sean1985,

can you upload a short version of your xml file?

Mike

0 Kudos
Message 2 of 14
(6,680 Views)

ermmm..  just left my workplace.

u can reference from the find example read from xml .vi . i had tried mine by using the technique learnt over there.

But my data to read from is a big xml consists of 100+ columns and rows.

however i just cant get it.

pls help

 

0 Kudos
Message 3 of 14
(6,677 Views)

Hi sean1985,

here is an example, how you can create an xml string and read from it. I don´t write the string to a file or read from it, but this should be no problem.
Hope it helps.

Mike

Message 4 of 14
(6,657 Views)

but my xml is in terms of DBL format...

i have been having problem with the data type of the unflatten.. cos i dunno whether should i used a DBL format or an array format in terms of DBL.

i tried both.. it just dun link up..

why?

0 Kudos
Message 5 of 14
(6,652 Views)
Hi sean1985,
i don´t know what you mean, if i change it to double instead of string it works in the same way.
Mike
0 Kudos
Message 6 of 14
(6,643 Views)
The XML functions that are included with LabVIEW assume that you created the XML file using those functions. LabVIEW uses a specific XML format. If you have a generic XML file you will not be able to use these functions. You will need to use a third-party library, like LabXML or the EasyXML Toolkit.
0 Kudos
Message 7 of 14
(6,633 Views)

this is my code. pls take a  look

i m wondering what is xml element?

flatten and unflatten all these stuff?

 

when i run. i got an error 1105 by the unflatten.vi

0 Kudos
Message 8 of 14
(6,608 Views)
it written unknown or unexpected tag is discovered??
0 Kudos
Message 9 of 14
(6,607 Views)

i had tried to use readfromspreadsheet.vi too. but nothing came out

basically my spreadsheet. ex. each row contains more than one number in each column

0 Kudos
Message 10 of 14
(6,604 Views)