10-30-2012
05:38 AM
- last edited on
05-05-2026
12:02 PM
by
Content Cleaner
Hi,
So here is my problem:
I want to go though an XML sequence file like this:
<?xml version="1.0" encoding="utf-8"> <content>
<sequence> <task type="first"/> <task type="second"/> <task type="third"/> <task type="first"/> <task type="fifth"/> <task type="seventh"/> </sequence>
</content>
I want to be able to detect if I'm currently processing the first or last node to send some notification to my GUI.
This is what I read about the equals method, I was hoping that it would call an equals method ( like in Java or .NET ) to compare 2 references of the object are actually the same object.
No I know I'm using XML references ( based on the Xerces parser .. so they're different )
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/equal.html
I wanted to compare references but I can't anyone has ideas how to help me out ? I would be appreciated.
Thanks,
Maciej
Solved! Go to Solution.
10-30-2012 08:08 AM
What I ended up doing is I use the index + content of the XML node as I for loop over my tasks to deremine where I am in my sequence.