02-21-2013 04:10 AM
Hye guys,
I'm trying to do some more advanced actions in XML files besides creating and deleting sections (or displaying them),
I was wondering how could I MOVE a section in the XML file,
for example let say I wanna move OP1 which is undet ATP to be after OP2 whice is in a different section under CPU:
<ROOT>
<ATP>
<OP1>
MORE SECTIONS
</OP1>
</ATP>
<CPU>
<OP2>
MORE SECTIONS
</OP2>
<CPU/>
</ROOT>
thianks alot in advance
Aj
Solved! Go to Solution.
02-21-2013 04:48 AM
I have never tried that, but I suppose CVIXMLCopyElement with option CopyChildren = TRUE followed by CVIXMLRemoveElement will work.
02-21-2013 05:34 AM
wow, I haven't thought about it... I guess I missed that function,
I will try that... thanks 😄
many thanks :D
04-03-2013 07:23 AM
after done with that,
I want you to know that it worked!!!
even better then I thought 😄
Thanks again 🙂
03-07-2016 06:30 AM
Hello Amit,
I am new to Lab windows and would therefore need your help in understanding how to import an XML file into a GUI so that I can populate labels of toggle buttons or graphics into my UIR file at run time.
Your helw would be deeply appreciated.
Thanks
Raunak
03-07-2016 09:02 AM
Hello,
it would be better to start a new thread instead of reviving an old one since your question is different from the original one of the discussion, especially since the original poster has published nothing in the past three years!
Having said that, CVI comes with an XML instrument starting from version 7.0 so you are probably ready to handle XML files. I suggest you start by looking at the examples that ships with the product: start the Example Finder (Help >> Find examples... menu item), open Search tab and input "XML" as the keyword to search: existing examples will be listed in the middle area of the instrument and you can open and study them together with the help for the functions used. Hopefully all this will give you enough informations to start with.
03-09-2016 10:54 AM
Thank you that helps a lot !!