10-06-2008 04:59 AM
Hi,
I'm using Read From XML File.vi and this VI returns an empty string on my XML file, but on another XML file it seems to work fine.
I open my XML file on Internet Explorer 7.0 and it apears as aspected.
What could be the problem?
Thanks in advance for any help.
Regards,
Daniel Coelho
Solved! Go to Solution.
10-06-2008 05:25 AM
10-06-2008 05:33 AM
Here it goes. (Please remove the .txt extension)
Thanks.
10-06-2008 10:47 AM
10-06-2008 12:53 PM
Thanks for making me aware of that XML schema.
I downloaded LabXML, because the second one was only a DEMO.
But how do I use these new VIs?
I can't make sense on how to open a file and read it.
Can you give some hints?
I apreciate the help.
Daniel Coelho
10-06-2008 01:01 PM - edited 10-06-2008 01:02 PM
Did you take a look at the example that comes with LabXML? The whole thing revolves around the custom cluster that represents a node. You need to provide a query string for "MSXML Select Nodes" to tell it where to start. This can be any node, based on XPATH syntax. For example, to read your entire XML file:
10-06-2008 01:28 PM
There are some examples with this package but nothing works.
I have conflicts on my project.
I atached a print screen.
Any clues on whats is the problem?
I thinks that this is exactly what I need, but I can't seem to get it to work.
10-06-2008 02:03 PM
Luckly, I solved the problem.
Thank you for your help.
I'll start experimenting these VIs to get the one section I want from the XML file.
I'll make this post as Solved as soon as I get this working. It won't take long, I hope.
Thnk you.
Daniel Coelho
10-06-2008 02:05 PM - edited 10-06-2008 02:07 PM
Did you install MSXML? If so, you probably have a version different from the version that was used to create the library. The library uses MSXML 4.0. It's quite likely that you have MSXML 6.0. The library can be made to work with MSXML 6.0, but they would need to be relinked to the changed ActiveX interface. You can have both MSXML 4.0 and 6.0 on your computer.
EDIT: Post submitted before I saw your last reply indicating that you has apparently solved that problem. To get the section you want, you just need to provide the correct query string. For instance, to get the "CAN" section the string would be "/HAL/CAN".
10-06-2008 02:19 PM
You're correct and it seems to work as I want.
Thank you for your help, this LabXML works well.
This post is oficially solved 😉
My best regards,
Daniel Coelho