LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display Labview XML file in web browser?

I would like to use XML as my data file format. I've done a little
preliminary research and it seems I need to use XSL or some other
scheme to generate HTML page elements from the raw XML files. Is this
correct? If so, has anyone done work in this area who could share
some info?

As an example of one of the things I'm doing to get started, I'd like
to generate an XML file of a 2D array using the LV XML functions and
display it as a table in a web browser.

Thanks in advance for any help.

gm
0 Kudos
Message 1 of 4
(4,220 Views)
You can display an array as a table in LabVIEW using the conversion tools in the Internet Toolkit.

As for the other aspects of XML in a browser, I cannot help. I remember seeing some XML tools, but don't recall ANYTHING about mixing or converting HTML and XML back and forth. Still, it can't hurt to do some serious searching through your LabVIEW help, NI's website, and the Developer Exchange.
Message 2 of 4
(4,220 Views)
When you look at an xml file with your web browser you see the data in a logicaly structured way (that's what xml is for). When you want to generate a table in a web browser out of your data, you have to do some additional programming, for example in xsl (like you suggested)

What you can also do, if your data is stored in an xml file, is to read the data with LabVIEW and Generate an HTML report with the Report Generation Tools of LabVIEW. This should work as well.

Rob
0 Kudos
Message 3 of 4
(4,220 Views)
Hi,

If you generate a XML file, and save it, you can open it in internet
explored.

It will show up using the default XSL for IE (a tree).

If you want it to look 'fancy', you'll have to make your own XSL, and:

a) make the XML file point to it.
b) make a HTML file, and use javascript to open the XSL and XML file, and
convert it.
c) make a vi that loads the XML and XSL file and convert it to HTML.
d) include the XSL file in the XML file.

Making a XSL file is really a comp.lang.xml.txt question.

Regards,

Wiebe.





"greenman" wrote in message
news:1a51ebaa.0209190626.47986b29@posting.google.com...
> I would like to use XML as my data file format. I've done a little
> preliminary research and it seems I need to use XSL or some
other
> scheme to generate HTML page elements from the raw XML files. Is this
> correct? If so, has anyone done work in this area who could share
> some info?
>
> As an example of one of the things I'm doing to get started, I'd like
> to generate an XML file of a 2D array using the LV XML functions and
> display it as a table in a web browser.
>
> Thanks in advance for any help.
>
> gm
0 Kudos
Message 4 of 4
(4,220 Views)