LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XML format issue

Hi team , 

 

I am writing the array data  content as xml file . 

 

In the XML file , test parameters name also ( Caption )   i need to Write  . 

 

I gave as 1d array as output  , so all caption / Parameters are all listed as " Status " .

 

But  parameter name  i need to write first ,  after that  i need to write the parameter value in the file 

 

For eg :

Parameter name  : Testcase name

Parameter value  : Voltage Test 

 

Parameter Name : Higher limit Value

Parameter  value  :  5

 

Attached the screenshot of xml file and Test vi . 

 

Please advise and suggest 

 

Thanks in advance 

Download All
0 Kudos
Message 1 of 4
(1,711 Views)

@Mrtechie wrote:

 

But  parameter name  i need to write first ,  after that  i need to write the parameter value in the file 

 


 

 

use a cluster instead of an array, because in an array, every element has the same name

 

cluster-versus-array_xml.png

 

is this related to this post?

https://forums.ni.com/t5/LabVIEW/Format-XML-data/td-p/4075392

0 Kudos
Message 2 of 4
(1,655 Views)
Message 3 of 4
(1,616 Views)

Hi team ,

 

After a googling and workout i used a parser method and content was written .

Please find attachment and refer image

 

But i need to change a format  little bit .

 

Testcase details need to printed in 1 line ( Horizontal manner  )

Next testcase details ( name , offset , parameters ) to be printed in the next line .

 

In existing format i attached , every parameter are printed in a every new line

 

Thanks in advance !

 

Please advise

 

 

Download All
0 Kudos
Message 4 of 4
(1,549 Views)