LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

XML FILE managment

Solved!
Go to solution

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

----------------------------
Amit Joseph,
Software Engineer
0 Kudos
Message 1 of 7
(3,670 Views)
Solution
Accepted by topic author Amit_J

I have never tried that, but I suppose CVIXMLCopyElement with option CopyChildren = TRUE followed by CVIXMLRemoveElement will work.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 7
(3,663 Views)

wow, I haven't thought about it... I guess I missed that function,

I will try that... thanks 😄

 

 

many thanks :DSmiley Happy

----------------------------
Amit Joseph,
Software Engineer
0 Kudos
Message 3 of 7
(3,658 Views)

after done with that,

I want you to know that it worked!!!

even better then I thought 😄

 

Thanks again 🙂

----------------------------
Amit Joseph,
Software Engineer
0 Kudos
Message 4 of 7
(3,585 Views)

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

0 Kudos
Message 5 of 7
(3,170 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 6 of 7
(3,159 Views)

Thank you that helps a lot !!

0 Kudos
Message 7 of 7
(3,130 Views)