LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does LABVIEW support general xml structure file operations?

Hi,
 
I had gone through lots of posts regarding the xml with LABVIEW.But I'm still not convinced with whether LV can handle xml file read
(the reason is ,I understand that u can generate an xml file with LV and read it back with minimal effort).
 
In case if a xml file is created by a different application,can LV read it & display & How easy is that task?
 
please let me know do i need any library files for it.I had downloaded MSXML 1.5 toolkit and gone thru the vi's,but still i didn't find a concrete program for doing a simple read/edit for any xml file already created.
 
Thanks in advance,
-Murali
 
 
0 Kudos
Message 1 of 6
(3,186 Views)
The program in the toolkit is called "Database editor.vi" . This shows what you have to do to read and write xml documents. If you are trying to read 'any' xml file with MSXML you will need a schema for the xml format in order to use "Xpath". If you don't have a schema then you can only use the "node" interface; in this case the xml document is considered an "xml fragment".
0 Kudos
Message 2 of 6
(3,179 Views)

Which version of LV are you using?

If it's LV8.x then xml should not be a problem.  I haven't verified xml with older versions, so I can't comment.

RayR

0 Kudos
Message 3 of 6
(3,170 Views)

Thanks for the reply,

1. I ran the database editor.vi , when i tried to add the required etail it's shoeing as"Unknown system error in MSXML edit" with error code 97.

2.I'm using LABVIEW 7.1 version

0 Kudos
Message 4 of 6
(3,145 Views)
hi,
The example Database editor.vi works fine. error 97 means that you did not load the xml file into the labview program.
1. start database editor.vi
2. click the (re)load button and select personneldemo.xml as the file to load
3. click the next button until you get to a record with the surname Lodder
4. in the table of the record type in a phone number for private phone, the click the add button
5. click the save button and save the xml file
6. examine the xml file just saved and note that the phone number you added is now stored in the file
Message 5 of 6
(3,133 Views)

Hi,

Thanks for the support.

My xml was corrupted so it wasn't able to load it.Anyway i was able to load it & display the records(because of your support),I updated a record as you said and saved it.But when i reload it,modified record is once again included in last with modification(that means details of  lodder was present with phone number as last record once again).

Anyway i would more interested to know if i can get details of any particular node from xml file.

for example:If i provide input as HOME_ADDRESS(of personneldemo xml file),i need details like Street address, phone number etc of that node.

Help on this will be greatly appreciated.

Thanks in advance

0 Kudos
Message 6 of 6
(3,091 Views)