Jump to content
Carmine DErrico

Parse in big XML generated by Testastand

Recommended Posts

Hallo!

 

First of alla I declare that I´m not skilled with XML.

 

I´ve a big .XML file generated by TestStand.

I have to recognize a special Dataset and not All dataset.

 

For example in the attached XML I want to extract only the ARRAY from:

 

TestResultCollection > TestResults > TestGroup > Test.

 

I tried to build a Labview-Cluster type but at the moment I can´t make this with the Lybraries.

 

Can you help me with an example?

 

Thank you.

 

Ciao!

Carmine

test_01_ok.xml

Share this post


Link to post
Share on other sites

With a great work I was able to extract data.

I attach the solution, in order to leave other people to understand.

 

I think that this library is not very powerful.

For big XML build a Cluster-Dataset is so difficult and you can have very much problem.

 

in C/C++/Jave there are libraries that allows you directly data extract, for example:

 

A=Node_A.Node_.Code_C.attribute_a

 

This can be a very good solution.

 

Ciao!

Carmine

Neue_Parser.vi

Share this post


Link to post
Share on other sites

Hello Carmine,

 

I'm glad you figured out the solution -- yes, this is the approach. You're right that it would be nice to provide a more direct way to extract the data of interest, in some cases.

 

Thanks!

Share this post


Link to post
Share on other sites

Hello Jim,

 

if I buy the full library there is a way for the direct access to XML records without building a data structure?

 

Carmine

 

Hi Carmine,

 

No, EasyXML requires that a data structure be passed in. However, there are some ways to make EasyXML and your data structures more flexible. If you change one of your clusters (or other any other LabVIEW types) to a string data type and add the "#xml" hashtag to the end (e.g. "TestResult #xml"), then EasyXML will return the data as a string. This is sometimes helpful if your structures have types that can vary.

 

-Jim

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.