From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read an xml database using xsd file in labview

I have Labview 8.5. I have an xml file (Database) that contains data from sensors. The data doesnt conform to the LabView's xml schema we have our own schema for the data. is there a way to extract the  digitized waveform data from this xml file by using our own xsd file?

 

Regards

Shoaib

0 Kudos
Message 1 of 8
(5,437 Views)

You may want to check into Easy XML:

 

http://www.jkisoft.com/easyxml/

Message 2 of 8
(5,431 Views)
There's also the free LabXML, but it's a bit old and not as, errr... "easy".
0 Kudos
Message 3 of 8
(5,421 Views)

I got the JKI easyxml but I have a question. How do i convert the xsd file to Labview Data Type variant? is there an easy way? i am thinking that i will have to create a cluster that matches the xsd file and then the parser will be able to read the xml file and output the data in the same format. 

 

I am very very new to XML so any help will be appreciated. 

 

Thanks

Shoaib

 

 

0 Kudos
Message 4 of 8
(5,409 Views)

Hi Shoaib,

 

I replied to your post on the JKI Software forums.  Please post your XML file, there, and we'll try to help you out.

 

Thanks,

 

-Jim

 

0 Kudos
Message 5 of 8
(5,391 Views)

I am attaching the xsd file here since I am not sure if by attaching the actual 3MB XML file i will be giving away any info that im not supposed to.Please rename the attachement to fmd.xsd

 

All i'm looking for is to somehow get the data defined by the following

 

  <xs:complexType name="T_sample">
  <xs:attribute name="num" type="xs:int" use="required" />
  <xs:attribute name="value" type="xs:int" use="required" />
  <xs:attribute name="value_mv" type="xs:float" use="required" />
  </xs:complexType>

 

0 Kudos
Message 6 of 8
(5,386 Views)

Jim, 

heres the file i tried to de-identify it as much as possible. I am interested in the raw data in the xml file. The incoming xml files may have data for multiple episodes like in this example xml.

 

any help will be appreciated. 

 

Thanks

 

0 Kudos
Message 7 of 8
(5,351 Views)

Hi Shoaib,

 

I've responded to your question, here.

 

Thanks,

 

-Jim

Message 8 of 8
(5,324 Views)