LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load, edit(multiplicate) and save XML elements

This is the xml in exemple that I need to work:
<map width="512" height="512" templex="100" templey="100"
templez="7">

<tile x="253" y="13" z="0" ground="460">

<tile x="254" y="13" z="0" ground="460">

<tile x="255" y="13" z="0" ground="460">

<tile x="256" y="13" z="0" ground="460">

</map>
I want to know how to load the XML and edit, in first, the map width and height to 1024 by duplicating(x.2) and then duplicate every tile x, not touching the other elements.

In the program I want to make this will have option to multiplicate just the value of X, just the Y or both of them, always duplicating map width and height.

If it would be possible to you to help me, I wish you have time and patience and write down here how to make it or make it for me and contacting me by email (ricardo.schmidt@gmail.com) or by MSN(ricardo.schmidt@gmail.com)

Thanks in advance.

Message Edited by 55 on 06-08-2005 05:09 PM

Message Edited by 55 on 06-08-2005 05:10 PM

0 Kudos
Message 1 of 2
(2,514 Views)
There are VIs for manipulating XML data in the Advanced>>Data Manipulation palette. There are also examples in the example finder (Help>>Find Example).
As for the logic of your program, it sounds fairly simple to do using case structures and the multiplication VI.

To learn how to do this, I think it's best to start with some LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,497 Views)