LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xml

Labview can generate HTML code, but is there possibilities to make xml code
too..

Esben
0 Kudos
Message 1 of 22
(5,708 Views)
"E" wrote:
>Labview can generate HTML code, but is there possibilities to make xml code>too..>>Esben>>

XML is eXtensible Mark-up Language is a tag-based (like HTML) way to organize
your data. HTML tags format the data display, XML describes what the data
is.

That being said, there are no NI vis for generating XML tags. However, since
it is just a way to tag data, and it is just ASCII strings, you should be
able to easily create your own set of vis for this. The following link is
to the XML "standard": http://www.w3.org/TR/REC-xml

There are many places where you can learn about XML including: http://www.ibm.com/developer/xml/
and http://www.xml-zone.com/ as well as many others.

I hope that this helps,
Bob Young
0 Kudos
Message 2 of 22
(5,702 Views)
have you found any VI to create XML tags? Im trying to create one myself but i dotn have the knowledge to do it right yet. Smiley Sad
0 Kudos
Message 3 of 22
(5,531 Views)
Hi Esben
Hi Bob,

what about the XML.VIs in the String palette?

regards
timo
0 Kudos
Message 4 of 22
(5,517 Views)

generating XML strings is very easy with the string functions see the attached.  Adding attributes would also be easy.  The syntax of XML is simple so storing data in XML is not very hard.  Reading data back could be more complex and enforcing/generating schemas it somewhat a challenge

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 22
(5,511 Views)

Here is a simple example using my xml function previously posted.  I know this is over simpel but shows how to store data in XML format (without any knowlege of the data structures it came from).  place this example in the same dirrectory as the subvi function from the previous post.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 6 of 22
(5,505 Views)
If you're looking for a more general solution, try LabXML, which is a library for reading/writing XML files. I've used it so I know it works quite well.
0 Kudos
Message 7 of 22
(5,507 Views)
Just wanted to thank you both for the help. really usefull stuff.
0 Kudos
Message 8 of 22
(5,491 Views)

I should give labXML a good look.  I have realized that XML is here to stay and is becoming ubitquitous in the computer industry, I think that labview has been slower to utilize XML so I have been shielded from using XML in my labview applications.  This last year I have made a concious effort to integrate XML more into my code.  One thing I have defiantly found, there are many instances where XML might not be the best choice.  Thanks for the labXML tip this keeps me from reinventing the wheel.

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 9 of 22
(5,470 Views)
Hi
Please send me LabXML.lib for writing in to XML file. I tried to download from website but it is  corrupted. Please send.
Thanks in advance.
Rikki
0 Kudos
Message 10 of 22
(5,180 Views)